r1070 - xwiki/trunk/src/main/web/wiki_editor/plugins
Jiri Luzny
tepich at users.forge.objectweb.org
Wed May 17 20:41:04 CEST 2006
Author: tepich
Date: 2006-05-17 20:41:04 +0200 (Wed, 17 May 2006)
New Revision: 1070
Modified:
xwiki/trunk/src/main/web/wiki_editor/plugins/core.js
Log:
Fixed bold in wysiwig mode, XWIKI-250
Modified: xwiki/trunk/src/main/web/wiki_editor/plugins/core.js
===================================================================
--- xwiki/trunk/src/main/web/wiki_editor/plugins/core.js 2006-05-16 09:28:49 UTC (rev 1069)
+++ xwiki/trunk/src/main/web/wiki_editor/plugins/core.js 2006-05-17 18:41:04 UTC (rev 1070)
@@ -30,8 +30,8 @@
this.addExternalProcessor((/{table}([\s\S]+?){table}/i), 'convertTableExternal');
this.addInternalProcessor((/<table\s*([^>]*)>([\s\S]+?)<\/table>/i), 'convertTableInternal');
- this.addExternalProcessor((/__(.+?)__/gi), '<b class="bold">$1<\/b>');
- this.addInternalProcessor((/<strong[^>]*>(.*?)<\/strong>/gi), '__$1__');
+ this.addExternalProcessor((/\*(.+?)\*/gi), '<b class="bold">$1<\/b>');
+ this.addInternalProcessor((/<strong[^>]*>(.*?)<\/strong>/gi), '*$1*');
this.addExternalProcessor((/~~(.+?)~~/gi), '<i class="italic">$1<\/i>');
this.addInternalProcessor((/<em[^>]*>(.*?)<\/em>/gi), '~~$1~~');
@@ -826,4 +826,4 @@
}
return str;
-}
\ No newline at end of file
+}
More information about the Xwiki-notifications
mailing list