Hi,
I'm having a problem with relative paths of images in FCKeditor. We have created an image browser / gallery etc. for ourselves and it works fine internally, but not when co-operating with FCK.
What I need to have, is a solution that works when an entire site is shifted up or down a directory. So f.i. I have a site in directory test of a given domain and when I move it to the http://domain.com/ level, it would still have to work.
The problem is as follows;
When I click the image icon the - for exp. users - well-known FCK dialog shows up. When I click the browse button I get my own image browser. I then click an image and it puts the URL in the correct textbox.
But this only works with absolute URLs.
(No matter how many ../../ I put in front of the path, no image shows up in the preview or editor window after completing the dialog.)
So when I use http://domain.com/test/ and after that move the site up one level, the images will be broken and I'll have to change all paths manually. (Because all images have the http://domain.com/test/ in front of their paths whilest they have moved to http://domain.com/their_path)
Now what I need to know is, if and how there's a way of configuring FCK to handle img's relatively. With links it works ok, fine, excellent, but unfortunately not with images. It would really save us a lot of work if there's a solution.
Tue, 10/02/2007 - 10:47
#1
Re: Custom image browser/uploader and relative paths