Ticket #6011: 6011.patch

File 6011.patch, 2.9 KB (added by Tobiasz Cudnik, 14 years ago)
  • _source/plugins/liststyle/plugin.js

     
    77{
    88        CKEDITOR.plugins.liststyle =
    99        {
    10                 requires : [ 'dialog' ],
     10                requires : [ 'dialog', 'menu' ],
    1111                init : function( editor )
    1212                {
    1313                        editor.addCommand( 'numberedListStyle', new CKEDITOR.dialogCommand( 'numberedListStyle' ) );
  • _source/plugins/clipboard/plugin.js

     
    284284        // Register the plugin.
    285285        CKEDITOR.plugins.add( 'clipboard',
    286286                {
    287                         requires : [ 'dialog', 'htmldataprocessor' ],
     287                        requires : [ 'htmldataprocessor' ],
    288288                        init : function( editor )
    289289                        {
    290290                                // Inserts processed data into the editor at the end of the
     
    304304                                                setTimeout( function()
    305305                                                {
    306306                                                        // Open default paste dialog.
    307                                                         editor.openDialog( 'paste' );
     307                                                        editor.openDialog && editor.openDialog( 'paste' );
    308308                                                }, 0 );
    309309                                        });
    310310
     
    336336                                addButtonCommand( 'Copy', 'copy', new cutCopyCmd( 'copy' ), 4 );
    337337                                addButtonCommand( 'Paste', 'paste', pasteCmd, 8 );
    338338
    339                                 CKEDITOR.dialog.add( 'paste', CKEDITOR.getUrl( this.path + 'dialogs/paste.js' ) );
     339                                // Add dialog if plugin is available.
     340                                if ( CKEDITOR.dialog )
     341                                        CKEDITOR.dialog.add( 'paste', CKEDITOR.getUrl( this.path + 'dialogs/paste.js' ) );
    340342
    341343                                editor.on( 'key', onKey, editor );
    342344
  • _source/plugins/pastetext/plugin.js

     
    2727
    2828                        if ( !clipboardText )   // Clipboard access privilege is not granted.
    2929                        {
    30                                 editor.openDialog( 'pastetext' );
     30                                editor.openDialog && editor.openDialog( 'pastetext' );
    3131                                return false;
    3232                        }
    3333                        else
     
    6565                                        command : commandName
    6666                                });
    6767
    68                         CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/pastetext.js' ) );
     68                        // Add dialog if plugin is available.
     69                        if ( CKEDITOR.dialog )
     70                                CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/pastetext.js' ) );
    6971
    7072                        if ( editor.config.forcePasteAsPlainText )
    7173                        {
  • _source/plugins/menubutton/plugin.js

     
    55
    66CKEDITOR.plugins.add( 'menubutton',
    77{
    8         requires : [ 'button', 'contextmenu' ],
     8        requires : [ 'button' ],
    99        beforeInit : function( editor )
    1010        {
    1111                editor.ui.addHandler( CKEDITOR.UI_MENUBUTTON, CKEDITOR.ui.menuButton.handler );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy