1

how can I remove CKeditor instance if it's already exists with jQuery help?

aainaarz
  • 782
  • 1
  • 7
  • 14

1 Answers1

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

Community
  • 1
  • 1
ephemeron
  • 396
  • 2
  • 12
  • 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