phpjavascriptfckeditor

How to reset FCKeditor with reset button in PHP or JavaScript?


See the below image.

I have added a reset button at the end of form.

When user press "reset" I can clear all inputs.

But I don't know how to clear this FCKeditor values.

Image


Solution

  • I think:

    var fckEditor = FCKeditorAPI.GetInstance('your-fckeditor-textbox-id'); 
    fckEditor.EditorDocument.body.innerHTML = '';
    

    will do what you want