Ticket #2863: 2863.patch
File 2863.patch, 2.1 KB (added by , 16 years ago) |
---|
-
_source/core/config.js
146 146 * @example 147 147 * config.plugins = 'basicstyles,button,htmldataprocessor,toolbar,wysiwygarea'; 148 148 */ 149 plugins : 'basicstyles,button,elementspath,horizontalrule,htmldataprocessor,keystrokes,newpage,removeformat,smiley,sourcearea,specialchar,tab,toolbar,wysiwygarea ',149 plugins : 'basicstyles,button,elementspath,horizontalrule,htmldataprocessor,keystrokes,newpage,removeformat,smiley,sourcearea,specialchar,tab,toolbar,wysiwygarea,print', 150 150 151 151 /** 152 152 * The theme to be used to build the UI. -
_source/plugins/print/plugin.js
1 /* 2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 */ 5 6 /** 7 * @file Print CKE Document 8 */ 9 10 CKEDITOR.plugins.add( 'print', 11 { 12 init : function( editor ) 13 { 14 var pluginName = 'print'; 15 16 // Register the dialog. 17 CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/image.js' ); 18 19 // Register the command. 20 editor.addCommand( pluginName, 21 { 22 exec : function( editor ) 23 { 24 editor.window.$.print(); 25 } 26 }); 27 28 // Register the toolbar button. 29 editor.ui.addButton( 'Print', 30 { 31 label : editor.lang.print, 32 command : pluginName 33 }); 34 } 35 } ); 36 37 -
_source/plugins/toolbar/plugin.js
207 207 [ 208 208 [ 209 209 'Source', '-', 210 'NewPage', ' -',210 'NewPage', 'Print', '-', 211 211 'Bold', 'Italic', 'Underline', 'Strike', '-', 212 212 'Subscript', 'Superscript', '-', 213 213 'SelectAll', 'RemoveFormat', '-',