Access Javascript Ckeditor Object Within An Iframe
Lets say I have a page with an iframe and within the iframe I have a ckeditor instance that I want to destroy from the containing page. I would usually try something like this: var
Solution 1:
Global variables belong to the window, not to the document so try this:
var iframe_CKEDITOR = document.getElemenyById("iframe_id").contentWindow.CKEDITOR;
for(var i in iframe_CKEDITOR.instances)
iframe_CKEDITOR.instances[i].destroy();
Post a Comment for "Access Javascript Ckeditor Object Within An Iframe"