How can i clear the ckeditor textarea with jquery at the click of a button/link?
I have tried this : $(\"textarea.editor\").val(\'\');
and $(\"tex
In my code i had to change the text in the ckeditor programmatically but it did not work until i did a defered set. This may be helpful.
_.defer(function () {
it._controls.wysiwyg.setData(bodyText); // by the direct reference
//CKEDITOR.instances.editor1.setData(''); // or this way like in the example
});