[pLog-svn] r2351 - plog/trunk/js/xinha
mark at devel.plogworld.net
mark at devel.plogworld.net
Wed Jul 20 07:38:33 GMT 2005
Author: mark
Date: 2005-07-20 07:38:33 +0000 (Wed, 20 Jul 2005)
New Revision: 2351
Modified:
plog/trunk/js/xinha/htmlarea.js
Log:
Forget the disable the stripbaseurl(), we should disable this in xinha, or it will remove the baseurl automatically without any warning.
Modified: plog/trunk/js/xinha/htmlarea.js
===================================================================
--- plog/trunk/js/xinha/htmlarea.js 2005-07-20 05:56:39 UTC (rev 2350)
+++ plog/trunk/js/xinha/htmlarea.js 2005-07-20 07:38:33 UTC (rev 2351)
@@ -4807,19 +4807,18 @@
/** @see getHTMLWrapper (search for "value = a.nodeValue;") */
+// -------------------------------------------------------------
+// PLOG HTMLAREA TWEAK
+// Changed by: Mark Wu
+// Date: 2005/07/20
+// Purpose: Remove stripBaseURL for compatiability
+// -------------------------------------------------------------
+
HTMLArea.prototype.stripBaseURL = function(string)
{
- if(this.config.baseHref==null || !this.config.stripBaseHref)
- {
- return(string);
- }
- var baseurl = this.config.baseHref;
-
- // strip host-part of URL which is added by MSIE to links relative to server root
- baseurl = baseurl.replace(/^(https?:\/\/[^\/]+)(.*)$/, '$1');
- basere = new RegExp(baseurl);
- return string.replace(basere, "");
+ return string;
};
+// -------------------------------------------------------------
String.prototype.trim = function() {
return this.replace(/^\s+/, '').replace(/\s+$/, '');
More information about the pLog-svn
mailing list