Hi,
I load some text into a FCKEditor instance which contains a relativ link. The user changes nothing but the output is always a false absolute path. E.g. there is
<a href="myfile.html">the link</a>
it is changed to
<a href="http://www.mysite.at/fckeditor/editor/myfile.html">the link</a>
so every link I load into FCKEditor is a broken link afterwards. How can I stop this? (FCKEditor 2.0 Beta 2)
thanks,
Verena
Tue, 10/26/2004 - 06:21
#1
RE: converting relativ to absolut paths
verena
RE: converting relativ to absolut paths
In each of these languages you will be able to access the output string.
Get it, search through it for the path you want to remove and replace that bit with "nothing" ("") or with another path you want to point to.
I don't know much about ASP, but in each of the other languages you can use regular expressions to do the work for you, though if the path you want to remove is always the same, than a string replace would probably be quicker.
RE: converting relativ to absolut paths
But why does FCKeditor does change it? Is this a feature I don't unterstand how to use? Does anybody else have this problem?