r1346 - xwiki/trunk/src/main/web/wiki_editor/plugins

Phung Hai Nam namphunghai at users.forge.objectweb.org
Thu Sep 28 11:55:15 CEST 2006


Author: namphunghai
Date: 2006-09-28 11:55:15 +0200 (Thu, 28 Sep 2006)
New Revision: 1346

Modified:
   xwiki/trunk/src/main/web/wiki_editor/plugins/core.js
Log:
Fixed a few small issues  in editor .

Modified: xwiki/trunk/src/main/web/wiki_editor/plugins/core.js
===================================================================
--- xwiki/trunk/src/main/web/wiki_editor/plugins/core.js	2006-09-28 03:19:06 UTC (rev 1345)
+++ xwiki/trunk/src/main/web/wiki_editor/plugins/core.js	2006-09-28 09:55:15 UTC (rev 1346)
@@ -119,8 +119,7 @@
 WikiEditor.prototype.removeSpecialHtmlTags = function(str) {
     str = str.replace(/<div class="paragraph">([\s\S]+?)<\/div>/g,'$1');
     str = str.replace(/<p class="paragraph">([\s\S]+?)<\/p>/g,'$1');
-    str = str.replace(/<span class="wikiexternallink">([\s\S]+?)<\/span>/gi,'$1');
-    str = str.replace(/<span class="wikilink">([\s\S]+?)<\/span>/gi,'$1');
+    str = str.replace(/<\/?span\s*([^>]*)>/gi, "");
     str = str.replace(/<\/?p[^>]*>/gi, "");
     str = str.replace(/<br \/>/g, '\r\n')
     return str;





More information about the Xwiki-notifications mailing list