Erik Kralj Erik Kralj - 1 year ago 293
Javascript Question

Remove all CKEditor instances

I have a form in which I have CKEditor replacing my

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"

Answer Source

This will destroy all CKEDITOR instances on a page:

for(name in CKEDITOR.instances)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download