/*设置FCKEDITOR为只读 */
function setFCKeditorReadOnly( editor ){
try{
editor.EditorDocument.body.contentEditable = false;
editor.EditMode=FCK_EDITMODE_SOURCE;
editor.ToolbarSet.RefreshModeState();
editor.EditMode=FCK_EDITMODE_WYSIWYG;
editor.ToolbarSet.RefreshModeState();
editor.EditorWindow.parent.document.getElementById('xExpanded').style.display = 'none';
editor.EditorWindow.parent.document.getElementById('xCollapsed').style.display = 'none';
editor.EditorWindow.blur();
}
catch(e){
}
}
function setFCKeditorReadOnly( editor ){
try{
editor.EditorDocument.body.contentEditable = false;
editor.EditMode=FCK_EDITMODE_SOURCE;
editor.ToolbarSet.RefreshModeState();
editor.EditMode=FCK_EDITMODE_WYSIWYG;
editor.ToolbarSet.RefreshModeState();
editor.EditorWindow.parent.document.getElementById('xExpanded').style.display = 'none';
editor.EditorWindow.parent.document.getElementById('xCollapsed').style.display = 'none';
editor.EditorWindow.blur();
}
catch(e){
}
}