]> code.citadel.org Git - citadel.git/blobdiff - webcit/tiny_mce/plugins/xhtmlxtras/js/cite.js
* upgraded new version of tiny_mce
[citadel.git] / webcit / tiny_mce / plugins / xhtmlxtras / js / cite.js
diff --git a/webcit/tiny_mce/plugins/xhtmlxtras/js/cite.js b/webcit/tiny_mce/plugins/xhtmlxtras/js/cite.js
new file mode 100644 (file)
index 0000000..c36f7fd
--- /dev/null
@@ -0,0 +1,25 @@
+ /**\r
+ * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $\r
+ *\r
+ * @author Moxiecode - based on work by Andrew Tetlaw\r
+ * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.\r
+ */\r
+\r
+function init() {\r
+       SXE.initElementDialog('cite');\r
+       if (SXE.currentAction == "update") {\r
+               SXE.showRemoveButton();\r
+       }\r
+}\r
+\r
+function insertCite() {\r
+       SXE.insertElement('cite');\r
+       tinyMCEPopup.close();\r
+}\r
+\r
+function removeCite() {\r
+       SXE.removeElement('cite');\r
+       tinyMCEPopup.close();\r
+}\r
+\r
+tinyMCEPopup.onInit.add(init);\r