maj version dans config.xml
[mtweb] / mw / libs / tiny_mce / plugins / print / 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() {\r
12         tinymce.create('tinymce.plugins.Print', {\r
13                 init : function(ed, url) {\r
14                         ed.addCommand('mcePrint', function() {\r
15                                 ed.getWin().print();\r
16                         });\r
17 \r
18                         ed.addButton('print', {title : 'print.print_desc', cmd : 'mcePrint'});\r
19                 },\r
20 \r
21                 getInfo : function() {\r
22                         return {\r
23                                 longname : 'Print',\r
24                                 author : 'Moxiecode Systems AB',\r
25                                 authorurl : 'http://tinymce.moxiecode.com',\r
26                                 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print',\r
27                                 version : tinymce.majorVersion + "." + tinymce.minorVersion\r
28                         };\r
29                 }\r
30         });\r
31 \r
32         // Register plugin\r
33         tinymce.PluginManager.add('print', tinymce.plugins.Print);\r
34 })();\r