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

Ludovic Dubost ludovic at users.forge.objectweb.org
Tue Jul 25 17:20:36 CEST 2006


Author: ludovic
Date: 2006-07-25 17:20:35 +0200 (Tue, 25 Jul 2006)
New Revision: 1093

Modified:
   xwiki/trunk/src/main/web/wiki_editor/plugins/core.js
Log:
Fix rules for Table which can fail in some browser

Modified: xwiki/trunk/src/main/web/wiki_editor/plugins/core.js
===================================================================
--- xwiki/trunk/src/main/web/wiki_editor/plugins/core.js	2006-07-24 15:18:46 UTC (rev 1092)
+++ xwiki/trunk/src/main/web/wiki_editor/plugins/core.js	2006-07-25 15:20:35 UTC (rev 1093)
@@ -30,7 +30,7 @@
     // Must convert external images inside table before convert the table
     this.addExternalProcessor((/{\s*image\s*:\s*(.*?)(\|(.*?))?(\|(.*?))?}/i), 'convertImageExternal');
 
-    this.addExternalProcessor((/{table}([\s\S]+?){table}/i), 'convertTableExternal');
+    this.addExternalProcessor((/\{table\}([\s\S]+?)\{table\}/i), 'convertTableExternal');
     this.addInternalProcessor((/<table\s*([^>]*)class=\"wiki-table\"\s*([^>]*)>([\s\S]+?)<\/table>/i), 'convertTableInternal');
 
     this.addExternalProcessor((/\*(.+?)\*/gi), '<b class="bold">$1<\/b>');
@@ -845,4 +845,4 @@
 	}
 
 	return str;
-}
\ No newline at end of file
+}





More information about the Xwiki-notifications mailing list