X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/871bad8291b6dbc29d489d95d185458caab25158..14d450d78a2d67ec1decd64c928151851961dd36:/_source/plugins/print/plugin.js diff --git a/_source/plugins/print/plugin.js b/_source/plugins/print/plugin.js deleted file mode 100644 index cc26932..0000000 --- a/_source/plugins/print/plugin.js +++ /dev/null @@ -1,42 +0,0 @@ -/* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.html or http://ckeditor.com/license -*/ - -/** - * @file Print Plugin - */ - -CKEDITOR.plugins.add( 'print', -{ - init : function( editor ) - { - var pluginName = 'print'; - - // Register the command. - var command = editor.addCommand( pluginName, CKEDITOR.plugins.print ); - - // Register the toolbar button. - editor.ui.addButton( 'Print', - { - label : editor.lang.print, - command : pluginName - }); - } -} ); - -CKEDITOR.plugins.print = -{ - exec : function( editor ) - { - if ( CKEDITOR.env.opera ) - return; - else if ( CKEDITOR.env.gecko ) - editor.window.$.print(); - else - editor.document.$.execCommand( "Print" ); - }, - canUndo : false, - readOnly : 1, - modes : { wysiwyg : !( CKEDITOR.env.opera ) } // It is imposible to print the inner document in Opera. -};