I am working on an plugin for the CKEditor.
The plugin uses CKEDITOR.dialog.addIframe(blah...) which opens a PHP-page. How would I go by to get the current instance? I've tried CKEDITOR.currentInstance but it is not set, however CKEDITOR.instances['foobar'] is, but there are 4 active editors so I need to know which one is the caller.
The plugin uses CKEDITOR.dialog.addIframe(blah...) which opens a PHP-page. How would I go by to get the current instance? I've tried CKEDITOR.currentInstance but it is not set, however CKEDITOR.instances['foobar'] is, but there are 4 active editors so I need to know which one is the caller.

Re: Get the current instance
if (!CKEDITOR) { var CKEDITOR = window.parent.CKEDITOR; }
..
..
And then I would like to insert html:
CKEDITOR.currentInstance.insertHtml(my_html);
Which fails.