src/pyams_skin/resources/js/ext/tinymce/dev/plugins/print/plugin.js
changeset 566 a1707c607eec
parent 565 318533413200
child 567 bca1726b1d85
equal deleted inserted replaced
565:318533413200 566:a1707c607eec
     1 /**
       
     2  * plugin.js
       
     3  *
       
     4  * Copyright, Moxiecode Systems AB
       
     5  * Released under LGPL License.
       
     6  *
       
     7  * License: http://www.tinymce.com/license
       
     8  * Contributing: http://www.tinymce.com/contributing
       
     9  */
       
    10 
       
    11 /*global tinymce:true */
       
    12 
       
    13 tinymce.PluginManager.add('print', function(editor) {
       
    14 	editor.addCommand('mcePrint', function() {
       
    15 		editor.getWin().print();
       
    16 	});
       
    17 
       
    18 	editor.addButton('print', {
       
    19 		title: 'Print',
       
    20 		cmd: 'mcePrint'
       
    21 	});
       
    22 
       
    23 	editor.addShortcut('Meta+P', '', 'mcePrint');
       
    24 
       
    25 	editor.addMenuItem('print', {
       
    26 		text: 'Print',
       
    27 		cmd: 'mcePrint',
       
    28 		icon: 'print',
       
    29 		shortcut: 'Meta+P',
       
    30 		context: 'file'
       
    31 	});
       
    32 });