Hi,
Since I don't like absolute paths, as they make a project very dependant on configuration settings I always point to images as:
<img src="images/someimage.jpg">
This works just fine, however when I open such a page in FCKEditor it doesn't show the image, because my FCKEditor installation is in:
/include/editor/editor/ - so FCKEditor is looking for images like this in /include/editor/editor/images/
To make things worse, if I click on the image properties the image preview is searching for the file in a different directory, i.e. /include/editor/editor/dialog/fck_image/images/
Is there a way to make the relatives paths work? For example set a configuration option in FCKEditor that all user files are relative to / for example or do I have to go for absolute paths?
Since I don't like absolute paths, as they make a project very dependant on configuration settings I always point to images as:
<img src="images/someimage.jpg">
This works just fine, however when I open such a page in FCKEditor it doesn't show the image, because my FCKEditor installation is in:
/include/editor/editor/ - so FCKEditor is looking for images like this in /include/editor/editor/images/
To make things worse, if I click on the image properties the image preview is searching for the file in a different directory, i.e. /include/editor/editor/dialog/fck_image/images/
Is there a way to make the relatives paths work? For example set a configuration option in FCKEditor that all user files are relative to / for example or do I have to go for absolute paths?
Re: Relative and absolute paths
Are you using php?
http://www.fckeditor.net/forums/viewtopic.php?f=6&t=11917&p=31210&hilit=+user+images#p31210
Re: Relative and absolute paths
then FCKConfig.BaseHref = 'path here'; is your friend
Re: Relative and absolute paths