2 * $Id: editor_plugin_src.js 126 2006-10-22 16:19:55Z spocke $
5 * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
8 /* Import theme specific language pack */
9 tinyMCE
.importPluginLanguagePack('print');
11 var TinyMCE_PrintPlugin
= {
12 getInfo : function() {
15 author
: 'Moxiecode Systems AB',
16 authorurl
: 'http://tinymce.moxiecode.com',
17 infourl
: 'http://tinymce.moxiecode.com/tinymce/docs/plugin_print.html',
18 version
: tinyMCE
.majorVersion
+ "." + tinyMCE
.minorVersion
22 getControlHTML : function(cn
) {
25 return tinyMCE
.getButtonHTML(cn
, 'lang_print_desc', '{$pluginurl}/images/print.gif', 'mcePrint');
32 * Executes the search/replace commands.
34 execCommand : function(editor_id
, element
, command
, user_interface
, value
) {
38 tinyMCE
.getInstanceById(editor_id
).contentWindow
.print();
42 // Pass to next handler in chain
47 tinyMCE
.addPlugin("print", TinyMCE_PrintPlugin
);