iframe problem with upload.js
-
Hello everyone,
I have a problem and I tried tenth of hack, but with no success…My WordPress is in a iframe (it must be so in my case) and everything works fine except when I click ‘Send to editor’ button -> it tells me “win.edInsertContent is not a function”.
If I open it out of the iframe, I don’t have the problem… but unfortunately I need to open it in an iframe…
I tried to hack it by changing
win.edInsertContent(win.edCanvas, h);
by
parent.edInsertContent(parent.document.getElementById('content'),h);
but I got another error:
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://.../wp-admin/post-new.php :: edInsertContent :: line 242" data: no]Does anyone have an idea?
Thank you in advance,
Malik.PS: I use FireFox 2.0.0.6
The topic ‘iframe problem with upload.js’ is closed to new replies.