Update of /cvsroot/php-blog/serendipity/htmlarea
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22796/htmlarea
Modified Files:
htmlarea.js
Log Message:
Fixed wrong HTML links for WYSIWYG-editor in Internet Explorer
Index: htmlarea.js
===================================================================
RCS file: /cvsroot/php-blog/serendipity/htmlarea/htmlarea.js,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- htmlarea.js 25 Mar 2004 14:25:52 -0000 1.4
+++ htmlarea.js 13 Apr 2004 10:15:08 -0000 1.5
@@ -2056,16 +2056,15 @@
HTMLArea.prototype.stripBaseURL = function(string) {
var baseurl = this.config.baseURL;
-
// strip to last directory in case baseurl points to a file
baseurl = baseurl.replace(/[^\/]+$/, '');
var basere = new RegExp(baseurl);
- string = string.replace(basere, "");
+ string = string.replace(basere, "/");
// 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.replace(basere, "");
};
String.prototype.trim = function() {
|