0
<script type="text/javascript">
window.onload = function()
{
    var oFCKeditor = new FCKeditor( 'content' ) ;
    oFCKeditor.BasePath = "js/Javascript/fckeditor/" ;
    oFCKeditor.Height = 300;
    oFCKeditor.Width = 600;
    oFCKeditor.ReplaceTextarea() ;
}
function fnenable(){
    var myValue=document.getElementById("checkbox1").checked;
    var oEditor = FCKeditorAPI.GetInstance('content');
    if(myValue==true) { 
        oEditor.EditorDocument.body.disabled=false;
    } else {
        oEditor.EditorDocument.body.disabled=true;
    }
}
</script>

我已经关注了网站http://www.fckeditor.net/forums/viewtopic.php?f=5&t=69

提前致谢

4

2 回答 2

0

作为替代方案,我建议 TinyMCE:

http://tinymce.moxiecode.com/

抱歉,太久没用FCKeditor了。我的直觉告诉我,这取决于您如何尝试获得“body”属性。

于 2009-05-14T06:24:32.953 回答
0

你有没有试过这个:

editorInstance.EditorDocument.body.contentEditable='false'; 
editorInstance.EditorDocument.designMode='off';

我还建议将编辑器升级到新的 CKEDITOR(不带 F):http ://ckeditor.com/

于 2012-04-05T21:13:37.103 回答