* Re-added tiny_mce, this time with the language packs
[citadel.git] / webcit / tiny_mce / plugins / emotions / editor_plugin_src.js
blobdf0d370aeab690245bf03bb35623dd7b180720d0
1 /**\r
2  * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $\r
3  *\r
4  * @author Moxiecode\r
5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.\r
6  */\r
7 \r
8 (function() {\r
9         tinymce.create('tinymce.plugins.EmotionsPlugin', {\r
10                 init : function(ed, url) {\r
11                         // Register commands\r
12                         ed.addCommand('mceEmotion', function() {\r
13                                 ed.windowManager.open({\r
14                                         file : url + '/emotions.htm',\r
15                                         width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)),\r
16                                         height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)),\r
17                                         inline : 1\r
18                                 }, {\r
19                                         plugin_url : url\r
20                                 });\r
21                         });\r
23                         // Register buttons\r
24                         ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'});\r
25                 },\r
27                 getInfo : function() {\r
28                         return {\r
29                                 longname : 'Emotions',\r
30                                 author : 'Moxiecode Systems AB',\r
31                                 authorurl : 'http://tinymce.moxiecode.com',\r
32                                 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',\r
33                                 version : tinymce.majorVersion + "." + tinymce.minorVersion\r
34                         };\r
35                 }\r
36         });\r
38         // Register plugin\r
39         tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin);\r
40 })();