Ticket #2863: 2863.patch

File 2863.patch, 2.1 KB (added by Artur Formella, 15 years ago)
  • _source/core/config.js

     
    146146         * @example
    147147         * config.plugins = 'basicstyles,button,htmldataprocessor,toolbar,wysiwygarea';
    148148         */
    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',
    150150
    151151        /**
    152152         * The theme to be used to build the UI.
  • _source/plugins/print/plugin.js

     
     1/*
     2Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
     3For licensing, see LICENSE.html or http://ckeditor.com/license
     4*/
     5
     6/**
     7 * @file Print CKE Document
     8 */
     9
     10CKEDITOR.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

     
    207207[
    208208        [
    209209                'Source', '-',
    210                 'NewPage', '-',
     210                'NewPage', 'Print', '-',
    211211                'Bold', 'Italic', 'Underline', 'Strike', '-',
    212212                'Subscript', 'Superscript', '-',
    213213                'SelectAll', 'RemoveFormat', '-',
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy