r1394 - xwiki/trunk/src/main/web/tiny_mce/plugins/wikiplugin

Phung Hai Nam namphunghai at users.forge.objectweb.org
Mon Oct 16 05:03:27 CEST 2006


Author: namphunghai
Date: 2006-10-16 05:03:26 +0200 (Mon, 16 Oct 2006)
New Revision: 1394

Added:
   xwiki/trunk/src/main/web/tiny_mce/plugins/wikiplugin/editor_plugin_src.js
Log:
Add editor_plugin_src.js again

Added: xwiki/trunk/src/main/web/tiny_mce/plugins/wikiplugin/editor_plugin_src.js
===================================================================
--- xwiki/trunk/src/main/web/tiny_mce/plugins/wikiplugin/editor_plugin_src.js	2006-10-14 06:48:16 UTC (rev 1393)
+++ xwiki/trunk/src/main/web/tiny_mce/plugins/wikiplugin/editor_plugin_src.js	2006-10-16 03:03:26 UTC (rev 1394)
@@ -0,0 +1,45 @@
+/* Import plugin specific language pack */
+//tinyMCE.importPluginLanguagePack('wikieditor', 'en'); // <- Add a comma separated list of all supported languages
+
+
+function TinyMCE_wikiplugin_initInstance(inst) {
+}
+
+function TinyMCE_wikiplugin_execCommand(editor_id, element, command, user_interface, value) {
+	return false;
+}
+
+function TinyMCE_wikiplugin_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
+	return true;
+}
+
+/**
+ * Gets executed when contents is inserted / retrived.
+ */
+function TinyMCE_wikiplugin_cleanup(type, content) {
+	switch (type) {
+		case "get_from_editor":
+			//alert("[FROM before] Value HTML string: " + content);
+
+			content = wikiEditor.convertInternal(content);
+
+			//alert("[FROM after] Value HTML string: " + content);
+
+			break;
+
+		case "get_from_editor_dom":
+
+			content = wikiEditor.tagListInternal(content);
+			//alert("[FROM] Value DOM Element " + content.innerHTML);
+
+			break;
+
+		case "insert_to_editor":
+			//alert("[TO not modified] Value HTML string: " + content);
+			content = wikiEditor.convertExternal(content);
+
+            break;
+	}
+
+	return content;
+}
\ No newline at end of file





More information about the Xwiki-notifications mailing list