On Internet Explorer, I've noticed that any relative URLs we enter get resolved to an absolute url (relative to /fckeditor/editor/fckeditorarea.html) whenever the user submits the form or changes between source and wysiwyg editing modes.
For example,
<img src="images/img.gif">
becomes:
<img src="http://www.mydomain.com/fckeditor/editor/images/img.gif">
I've scanned through the source code and can't figure out where this is occuring. I'm thinking it might actually be happening automatically through the DOMDocument ActiveX object. URLs on Firefox aren't changed at all.
Does anyone know of a way to turn this behavior off?
Sun, 11/28/2004 - 00:37
#1
RE: Relative URLs becoming absolute URLs
When you switch from WYSIWYG to source view or vice versa, FCKeditor seems to be going through the code element by element and copying it using XML DOM. The problem here is that when doing this, IE doesn't return the SRC or HREF attribute as it is in the code, it returns the "actual" URL of the link or image as it is on the page.
The only workaround I can think of is adding some code into this process that uses the outerHTML property of the element to get the attribute as it was entered. I haven't actually gotten this to work yet, though.
RE: Relative URLs becoming absolute URLs
RE: Relative URLs becoming absolute URLs
see http://sourceforge.net/tracker/index.ph ... tid=543653
RE: Relative URLs becoming absolute URLs
I tried the two solutions proposals in the link http://sourceforge.net/tracker/index.ph ... tid=543653 but none of them worked...
It continues placing the absolute path when I switch between code mode and WYSIWYG mode... it places the fckeditor path (http://.../fckeditor/editor/...). What is problem?
Somebody has some solution?
Thanks.
RE: Relative URLs becoming absolute URLs