I have the following problem: when using filebrowserImageUploadUrl, CKEditor creates an iFrame and load the given filebrowserImageUploadUrl as the source for the iframe. It is my understanding that the HTML loaded in the iFrame is then supposed to execute a Javascript looking like this:
The problem is that since my imageUploadUrl is not on the same domain as the originalPage, browsers absolutely refuse the javascript to access window.parent.CKEDITOR, and the callback is never called back.
Anyone has an idea to workaround this limitation? The only alternative I see right now is to patch the CKEditor code to insert before the upload my own function which will monitor the IFrame onreadystateChange, but I am very weary of patching this code since it looks like a lot of work went into it, and that cross-domain problems have been specifically thought about for 3.X releases.
Using CKEditor 3.6.1.
window.parent.CKEDITOR.tools.callFunction(CKEditorFuncNum, uploadedImageUrl, sucessMessage);
The problem is that since my imageUploadUrl is not on the same domain as the originalPage, browsers absolutely refuse the javascript to access window.parent.CKEDITOR, and the callback is never called back.
Anyone has an idea to workaround this limitation? The only alternative I see right now is to patch the CKEditor code to insert before the upload my own function which will monitor the IFrame onreadystateChange, but I am very weary of patching this code since it looks like a lot of work went into it, and that cross-domain problems have been specifically thought about for 3.X releases.
Using CKEditor 3.6.1.