X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;ds=sidebyside;f=mw%2Flibs%2Ftiny_mce%2Fplugins%2Fxhtmlxtras%2Fjs%2Facronym.js;fp=mw%2Flibs%2Ftiny_mce%2Fplugins%2Fxhtmlxtras%2Fjs%2Facronym.js;h=6ec2f887164dd4db3e2213d6384e78ae3f08f381;hb=49c57f2e4950e8fbce1ff8f1c2b791e3df0d61b1;hp=0000000000000000000000000000000000000000;hpb=beb400a195a5ac025eb9fe75c5abdeddde4195c2;p=mtweb diff --git a/mw/libs/tiny_mce/plugins/xhtmlxtras/js/acronym.js b/mw/libs/tiny_mce/plugins/xhtmlxtras/js/acronym.js new file mode 100644 index 0000000..6ec2f88 --- /dev/null +++ b/mw/libs/tiny_mce/plugins/xhtmlxtras/js/acronym.js @@ -0,0 +1,28 @@ +/** + * acronym.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('acronym'); + if (SXE.currentAction == "update") { + SXE.showRemoveButton(); + } +} + +function insertAcronym() { + SXE.insertElement('acronym'); + tinyMCEPopup.close(); +} + +function removeAcronym() { + SXE.removeElement('acronym'); + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init);