Hi,
I know that the image absolute/relative path topic has been done to death, but this appears to be something that hasn't been mentioned specifically yet. I'm using the latest FCKEditor 2.3.2, and the problem affects IE6 and 7, but not Firefox 1.5 or 2.
I am using FCKEditor as part of a ASP.NET 2.0 CMS that I've built. I've set a custom UserFiles path using the web.config file:
<add key="FCKeditor:UserFilesPath" value="/files/" />
This works as expected - I can upload images and files to this directory via the image/link browsers, and now have a directory of images at /files/Image/ (relative to the root, which is http://localhost:82/). So when I insert an image into the editor using the browser, it displays perfectly happily in the editor when I'm using Firefox, with a path of <img src="/files/Image/test.jpg" alt="" />. I save the page and the image displays on the rendered page just as it should.
However, if I use IE6 or 7 to do my editing, I get the 'image not found' red cross replacing my image. Looking at the source, the path is still the same - "/files/Image/test.jpg" - relative to the root. Of course this file exists. And if I change the path to absolute; i.e. "http://localhost:82/files/Image/test.jpg", it displays correctly. But this is not what I want to have to do, as the code then ceases to be transportable. Besides, it's obviously a bug in FCKeditor/FredCK which needs fixing. The code is looking for the image in the wrong place when I'm using IE.
Now I am no Javascript expert and have no idea how to go about fixing the problem or identifying where the code is currently breaking. So does anyone have any idea what's happening here? Unfortunately I can't simply tell my client to 'use Firefox'...
TIA!
Thu, 11/23/2006 - 07:00
#1