Mercurial > public > sg101
comparison media/js/tiny_mce/plugins/print/editor_plugin_src.js @ 45:a5b4c5ce0658
Breaking down and controlling all media files, including javascript libraries.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 19 Jun 2009 03:16:03 +0000 |
parents | |
children | 149c3567fec1 |
comparison
equal
deleted
inserted
replaced
44:08cd19c1ee50 | 45:a5b4c5ce0658 |
---|---|
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 })(); |