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