how can I remove CKeditor instance if it's already exists with jQuery help?
Asked
Active
Viewed 9,187 times
1 Answers
1
You could try:
CKEDITOR.instances.*instanceName*.destroy();
http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#destroy
To remove an editor after checking it exists: CKEditor instance already exists
-
I know that, but how can I find out if instance exist? – aainaarz May 10 '12 at 08:01
-
I've edited my answer to include a link you might find relevant. `if(CKEDITOR.instances.instanceName)` will check if an instance exists. I doubt you need to use JQuery for this task. – ephemeron May 10 '12 at 08:17