applied my changes - initial import
[boxroom-stian.git] / public / javascripts / tiny_mce / plugins / print / editor_plugin_src.js
blob9380c3fd6f69db64107bd40f5d2b8a611ba4dfd1
1 /**
2 * $Id: editor_plugin_src.js 126 2006-10-22 16:19:55Z spocke $
4 * @author Moxiecode
5 * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
6 */
8 /* Import theme specific language pack */
9 tinyMCE.importPluginLanguagePack('print');
11 var TinyMCE_PrintPlugin = {
12 getInfo : function() {
13 return {
14 longname : 'Print',
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) {
23 switch (cn) {
24 case "print":
25 return tinyMCE.getButtonHTML(cn, 'lang_print_desc', '{$pluginurl}/images/print.gif', 'mcePrint');
28 return "";
31 /**
32 * Executes the search/replace commands.
34 execCommand : function(editor_id, element, command, user_interface, value) {
35 // Handle commands
36 switch (command) {
37 case "mcePrint":
38 tinyMCE.getInstanceById(editor_id).contentWindow.print();
39 return true;
42 // Pass to next handler in chain
43 return false;
47 tinyMCE.addPlugin("print", TinyMCE_PrintPlugin);