I'm currently running 2.0 RC 2.
I'm enabling the smiley option for a public bulletin board setup, and have run into a problem. If I select a smiley image, and then right-click on it, I have available the "image properties" dialog. I don't want public people to have access into my image library, and so I need to disable this, but allow it when I'm in an Admin page of the system.
In the fck_image.js file, I added this code:
if(window.parent.opener.parent.location.href.indexOf("admin") <= 0){
window.parent.close();
}
which works for FireFox - the image dialog closes itself. But this does not work in IE - apparently the DOM hierarchy is different. Does anyone know what to change here?
In general, I'd imagine that the image dialog should be disabled if it's not displayed in the toolbar. I could copy & paste in an image, and that would get me into the dialog as well.
I'm enabling the smiley option for a public bulletin board setup, and have run into a problem. If I select a smiley image, and then right-click on it, I have available the "image properties" dialog. I don't want public people to have access into my image library, and so I need to disable this, but allow it when I'm in an Admin page of the system.
In the fck_image.js file, I added this code:
if(window.parent.opener.parent.location.href.indexOf("admin") <= 0){
window.parent.close();
}
which works for FireFox - the image dialog closes itself. But this does not work in IE - apparently the DOM hierarchy is different. Does anyone know what to change here?
In general, I'd imagine that the image dialog should be disabled if it's not displayed in the toolbar. I could copy & paste in an image, and that would get me into the dialog as well.