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を使用してから時間が経ちました。私の腸は、あなたが「体」の特性を取得しようとしている方法にあると私に言います。

于 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 に答える