You are not logged in.
Hi,
I've written an image upload tool and am using the javascript:
editor.insertHTML('<img src="http://path/to/image.jpg">');
This works fine in firefox.
But in IE the path is automatically changed to a relative one!
Is this a known bug? Or is there a work-around?
Many thanks,
Adam
Offline
Thanks a lot for your help.
There was no obvious nice way to disable it so I just commented a line out in the htmlarea.js and it fixed it.
I'm not sure why this line is needed.
Thanks Again
Offline
I've been having the same problem, both with images and long links (when the start of the link is the same as the base URL).
I had a look through the code and thought I'd found the problem:
// f_href : HTMLArea.is_ie ? editor.stripBaseURL(link.href) : link.getAttribute("href"),
f_href : link.getAttribute("href"),
// f_url : HTMLArea.is_ie ? editor.stripBaseURL(image.src) : image.getAttribute("src"),
f_url : image.getAttribute("src"),
But now on IE, I get the base URL being duplicated...
and I think it's stopped working in Firefox...
VERY CONFUSED!
All help extremely welcome.
Last edited by JAC (2005-05-05 12:08:00)
Offline
I'm trying to figure this out also, with no luck, I even tried deleting the whole HTMLArea.prototype._insertImage function from htmlara.js but then insert image still works as usual, so I don't think commenting out any code inside the function will do anything either
BTW I'm using Xinha as a module with Drupal 4.7
thanks in advance!
Offline