FCKeditor integration (and possibly other editors) is broken: nothing shows up in the Image Properties - Image Info "URL" field when an image is selected. It appears that access to .document for another window is not allowed in either firefox 3 or IE 7 (see link below).

Getting
Error: Permission denied to get property Window.document
Source File: http://192.168.223.128/sites/all/modules/imce/js/imce_set_app.js?N
Line: 26

in here
//sendTo function
var appFinish = function(file, win) {
var win = top.appiFrm||win, doc = $(win.opener.document); // <---------------- line 26
for (var i in appFields) {
doc.find('#'+ appFields[i]).val(file[i]);
}
if (appFields['url']) {
try{doc.find('#'+ appFields['url']).blur().change().focus()}catch(e){};
try{doc.find('#'+ appFields['url']).trigger('onblur').trigger('onchange').trigger('onfocus')}catch(e){};//inline events
}
win.opener.focus();
win.close();
};

See http://developer.mozilla.org/en/docs/DOM:window.document
for a possible reason why this is happening.

Comments

ddyrr’s picture

This is also a problem in TinyMCE

reaneyk’s picture

subscribing...

ddyrr’s picture

I'm using TinyTinyMCE now, and it works now. I don't even remember this problem, or when it started working, but the latest works for me. I did have a problem when combining IMCE with SecurePages, but adding imce* as a secure page solved that problem too.

reaneyk’s picture

Confirmed. Worked for me as well after I modified the SecurePages rule.

Thanks ddyrr!

ufku’s picture

Category: bug » support
Status: Active » Fixed

IMCE won't work between different domains or between secure and insecure pages.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.