Mercurial > hg > AnnotationManager
comparison WebContent/jscripts/tiny_mce/plugins/print/editor_plugin_src.js @ 5:0be9d53a6967
editor for annotations
| author | dwinter |
|---|---|
| date | Tue, 13 Dec 2011 17:43:46 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 4:c32080f364c6 | 5:0be9d53a6967 |
|---|---|
| 1 /** | |
| 2 * editor_plugin_src.js | |
| 3 * | |
| 4 * Copyright 2009, Moxiecode Systems AB | |
| 5 * Released under LGPL License. | |
| 6 * | |
| 7 * License: http://tinymce.moxiecode.com/license | |
| 8 * Contributing: http://tinymce.moxiecode.com/contributing | |
| 9 */ | |
| 10 | |
| 11 (function() { | |
| 12 tinymce.create('tinymce.plugins.Print', { | |
| 13 init : function(ed, url) { | |
| 14 ed.addCommand('mcePrint', function() { | |
| 15 ed.getWin().print(); | |
| 16 }); | |
| 17 | |
| 18 ed.addButton('print', {title : 'print.print_desc', cmd : 'mcePrint'}); | |
| 19 }, | |
| 20 | |
| 21 getInfo : function() { | |
| 22 return { | |
| 23 longname : 'Print', | |
| 24 author : 'Moxiecode Systems AB', | |
| 25 authorurl : 'http://tinymce.moxiecode.com', | |
| 26 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print', | |
| 27 version : tinymce.majorVersion + "." + tinymce.minorVersion | |
| 28 }; | |
| 29 } | |
| 30 }); | |
| 31 | |
| 32 // Register plugin | |
| 33 tinymce.PluginManager.add('print', tinymce.plugins.Print); | |
| 34 })(); |
