Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
25
rated 0 times [  29] [ 4]  / answers: 1 / hits: 33776  / 12 Years ago, fri, july 27, 2012, 12:00:00

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


More From » jquery

 Answers
66

This will destroy all CKEDITOR instances on a page:



for(name in CKEDITOR.instances)
{
CKEDITOR.instances[name].destroy(true);
}

[#84023] Wednesday, July 25, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jennie

Total Points: 593
Total Questions: 102
Total Answers: 106

Location: Federated States of Micronesia
Member since Fri, Sep 16, 2022
2 Years ago
jennie questions
;