made a copy
[atutor.git] / jscripts / tiny_mce / plugins / xhtmlxtras / js / acronym.js
1  /**\r
2  * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $\r
3  *\r
4  * @author Moxiecode - based on work by Andrew Tetlaw\r
5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.\r
6  */\r
7 \r
8 function init() {\r
9         SXE.initElementDialog('acronym');\r
10         if (SXE.currentAction == "update") {\r
11                 SXE.showRemoveButton();\r
12         }\r
13 }\r
14 \r
15 function insertAcronym() {\r
16         SXE.insertElement('acronym');\r
17         tinyMCEPopup.close();\r
18 }\r
19 \r
20 function removeAcronym() {\r
21         SXE.removeElement('acronym');\r
22         tinyMCEPopup.close();\r
23 }\r
24 \r
25 tinyMCEPopup.onInit.add(init);\r