Hi.
I am using FCKEditor in a CMS application. (Version 2.4.3, build 15657)
I use a custom image upload/browser to add images.
I am having trouble making relative paths or absolute ones but without the domain.
They work fine in Firefox but not in IE.
I have a page “pageEDIT.aspx” in the root. That page has the iframe generated by FCKEditor where it's instance loads.
FCKEditor path is something like http:// localhost:3124/ ApplicationDirectory/ FCKEditor/ editor/ fckeditor.htm”
I have a “imageSelect.aspx” also in the root.
All the images uploaded are stored in http:// localhost:3124/ ApplicationDirectory/ Files/ Images/ XXX.jpg
So, when I pass from “imageSelect.aspx” to FCKEditor the path “/ApplicationDirectory/Files/Images/XXX.jpg” (through SetURL function) in FireFox, the image shows well in the editing area, but not in IE. There I get the broken link image.
Also tried relative path “../../Files/Images/XXX.jpg” which also Works in FireFox but not in IE.
The only way it Works in IE is with the complete url http:// localhost:3124/ ApplicationDirectory/ Files/ Images/ XXX.jpg but you may realize that this is not correct, since that domain is only a development temporary path
In fact, that “3124” is a random port that Visual Studio 2005 adds to the localhost to run a custom development Server (I am wondering if that wouldn’t be the problem, but also wondering why it Works ok in Firefox)
Other images shows well and also do work links based on an absolute path starting with slash both in Firefox and IE. I am having problems only in FCKEditor.
If I see the source code of the editing area of FCKEditor, the path stills as I pass it, so the script (FCKEditor’s code) does not adds anything to it. If I manually set the full path in the source code of the editing area adding the http:// localhost... then the image shows well also in IE.
¿Any suggestion?
Thanks in advance.
Leonardo
Fri, 04/25/2008 - 18:13
#1
