window.onload = function() { var oFCKeditor = new FCKeditor( 'content'...">

FCKeditor disable javascript not working

<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>

      

I have followed the site http://www.fckeditor.net/forums/viewtopic.php?f=5&t=69 .

Thanks in advance

0


a source to share


2 answers


Alternatively, I would suggest TinyMCE:

http://tinymce.moxiecode.com/



Sorry, I've been using FCKeditor for too long. My gut tells me this how you are trying to get the "body" property.

0


a source


Have you tried this:

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

      



I also recommend updating the editor to the new CKEDITOR (no F): http://ckeditor.com/

0


a source







All Articles