I have a form in which I have CKEditor replacing my <textarea>
s (multiple). I want to remove all CKEditor instances from the page before submitting the form. How can I accomplish this?
I've looked at Remove CKEdit Instance but it didn't help me at all.
NOTE: All my CKEditors have a class "ckedit"
Try it may helpful. function CKupdate(){ for ( instance in CKEDITOR. instances ){ CKEDITOR.
Ckeditor 4 allows you to replace multiple textareas with editors based on classname: CKEDITOR.
CKEditor is a modern, feature-rich JavaScript text editor with clean UI and perfect UX. Easily customizable to any use case.
This will destroy all CKEDITOR instances on a page:
for(name in CKEDITOR.instances)
{
CKEDITOR.instances[name].destroy(true);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With