Ticket #5135: 5135.patch

File 5135.patch, 1.4 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/tab/plugin.js

     
    1 /*
     1/*
    22Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
    33For licensing, see LICENSE.html or http://ckeditor.com/license
    44*/
    55
    66(function()
    77{
     8        var meta =
     9        {
     10                editorFocus : false,
     11                modes : { wysiwyg:1, source:1 }
     12        };
     13
    814        var blurCommand =
    915                {
    1016                        exec : function( editor )
     
    3945                                tabText += '\xa0';
    4046
    4147                        // Register the "tab" and "shiftTab" commands.
    42                         editor.addCommand( 'tab',
     48                        editor.addCommand( 'tab', CKEDITOR.tools.extend(
    4349                                {
    4450                                        exec : function( editor )
    4551                                        {
     
    6167
    6268                                                return true;
    6369                                        }
    64                                 });
     70                                }, meta ) );
    6571
    66                         editor.addCommand( 'shiftTab',
     72                        editor.addCommand( 'shiftTab', CKEDITOR.tools.extend(
    6773                                {
    6874                                        exec : function( editor )
    6975                                        {
     
    7480
    7581                                                return true;
    7682                                        }
    77                                 });
     83                                }, meta ) );
    7884
    79                         editor.addCommand( 'blur', blurCommand );
    80                         editor.addCommand( 'blurBack', blurBackCommand );
     85                        editor.addCommand( 'blur', CKEDITOR.tools.extend( blurCommand, meta ) );
     86                        editor.addCommand( 'blurBack', CKEDITOR.tools.extend( blurBackCommand, meta ) );
    8187                }
    8288        });
    8389})();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy