[pLog-svn] r717 - plog/trunk/js/htmlarea

oscar at devel.plogworld.net oscar at devel.plogworld.net
Mon Jan 10 12:57:04 GMT 2005


Author: oscar
Date: 2005-01-10 12:57:03 +0000 (Mon, 10 Jan 2005)
New Revision: 717

Modified:
   plog/trunk/js/htmlarea/htmlarea.js
Log:
IE was returning relative paths to images... fixed now, all paths are absolute.


Modified: plog/trunk/js/htmlarea/htmlarea.js
===================================================================
--- plog/trunk/js/htmlarea/htmlarea.js	2005-01-10 12:35:36 UTC (rev 716)
+++ plog/trunk/js/htmlarea/htmlarea.js	2005-01-10 12:57:03 UTC (rev 717)
@@ -1437,7 +1437,8 @@
 			image = null;
 	}
 	if (image) outparam = {
-		f_url    : HTMLArea.is_ie ? editor.stripBaseURL(image.src) : image.getAttribute("src"),
+		//OSCAR: we shouldn't convert images into relateive urls!!!
+		f_url    : HTMLArea.is_ie ? image.src : image.getAttribute("src"),
 		f_alt    : image.alt,
 		f_border : image.border,
 		f_align  : image.align,
@@ -2013,7 +2014,9 @@
 						// IE seems not willing to return the original values - it converts to absolute
 						// links using a.nodeValue, a.value, a.stringValue, root.getAttribute("href")
 						// So we have to strip the baseurl manually -/
-						if (HTMLArea.is_ie && (name == "href" || name == "src")) {
+						//if (HTMLArea.is_ie && (name == "href" || name == "src")) {
+						//OSCAR: images shouldn't be turned into relative paths!!
+						if (HTMLArea.is_ie && (name == "href")) {
 							value = editor.stripBaseURL(value);
 						}
 					}




More information about the pLog-svn mailing list