views:

1085

answers:

1
<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&amp;t=69.

Thanks in advance

A: 

As an alternative, I would suggest TinyMCE:

http://tinymce.moxiecode.com/

Sorry, it's been too long since I've used FCKeditor. My gut tells me it's in how you're trying to get the "body" property.

richardtallent
how do i replace textarea with TinyMCE
Jugal