maj version dans config.xml
[mtweb] / mw / libs / tiny_mce / plugins / emotions / editor_plugin_src.js
1 /**\r
2  * editor_plugin_src.js\r
3  *\r
4  * Copyright 2009, Moxiecode Systems AB\r
5  * Released under LGPL License.\r
6  *\r
7  * License: http://tinymce.moxiecode.com/license\r
8  * Contributing: http://tinymce.moxiecode.com/contributing\r
9  */\r
10 \r
11 (function(tinymce) {\r
12         tinymce.create('tinymce.plugins.EmotionsPlugin', {\r
13                 init : function(ed, url) {\r
14                         // Register commands\r
15                         ed.addCommand('mceEmotion', function() {\r
16                                 ed.windowManager.open({\r
17                                         file : url + '/emotions.htm',\r
18                                         width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)),\r
19                                         height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)),\r
20                                         inline : 1\r
21                                 }, {\r
22                                         plugin_url : url\r
23                                 });\r
24                         });\r
25 \r
26                         // Register buttons\r
27                         ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'});\r
28                 },\r
29 \r
30                 getInfo : function() {\r
31                         return {\r
32                                 longname : 'Emotions',\r
33                                 author : 'Moxiecode Systems AB',\r
34                                 authorurl : 'http://tinymce.moxiecode.com',\r
35                                 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',\r
36                                 version : tinymce.majorVersion + "." + tinymce.minorVersion\r
37                         };\r
38                 }\r
39         });\r
40 \r
41         // Register plugin\r
42         tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin);\r
43 })(tinymce);