equal
deleted
inserted
replaced
1 /** |
|
2 * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $ |
|
3 * |
|
4 * @author Moxiecode |
|
5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. |
|
6 */ |
|
7 |
|
8 (function() { |
|
9 tinymce.create('tinymce.plugins.Print', { |
|
10 init : function(ed, url) { |
|
11 ed.addCommand('mcePrint', function() { |
|
12 ed.getWin().print(); |
|
13 }); |
|
14 |
|
15 ed.addButton('print', {title : 'print.print_desc', cmd : 'mcePrint'}); |
|
16 }, |
|
17 |
|
18 getInfo : function() { |
|
19 return { |
|
20 longname : 'Print', |
|
21 author : 'Moxiecode Systems AB', |
|
22 authorurl : 'http://tinymce.moxiecode.com', |
|
23 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print', |
|
24 version : tinymce.majorVersion + "." + tinymce.minorVersion |
|
25 }; |
|
26 } |
|
27 }); |
|
28 |
|
29 // Register plugin |
|
30 tinymce.PluginManager.add('print', tinymce.plugins.Print); |
|
31 })(); |
|