Bug 5917 : Converted templates
[koha.git] / koha-tt / intranet-tmpl / prog / en / js / tinymce / jscripts / tiny_mce / plugins / xhtmlxtras / jscripts / abbr.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-2007, Moxiecode Systems AB, All rights reserved.\r
6  */\r
7 \r
8 function preinit() {\r
9         // Initialize\r
10         tinyMCE.setWindowArg('mce_windowresize', false);\r
11 }\r
12 \r
13 function init() {\r
14         tinyMCEPopup.resizeToInnerSize();\r
15         SXE.initElementDialog('abbr');\r
16         if (SXE.currentAction == "update") {\r
17                 SXE.showRemoveButton();\r
18         }\r
19 }\r
20 \r
21 function insertAbbr() {\r
22         SXE.insertElement(tinyMCE.isIE && !tinyMCE.isOpera ? 'html:ABBR' : 'abbr');\r
23         tinyMCEPopup.close();\r
24 }\r
25 \r
26 function removeAbbr() {\r
27         SXE.removeElement('abbr');\r
28         tinyMCEPopup.close();\r
29 }