Ticket #5182: 5182.patch

File 5182.patch, 1.5 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/menubutton/plugin.js

     
    3535                var menu = _.menu;
    3636                if ( !menu )
    3737                {
    38                         menu = _.menu = new CKEDITOR.plugins.contextMenu( editor );
     38                        menu = _.menu = new CKEDITOR.plugins.contextMenu( editor,
     39                        {
     40                                panel:
     41                                {
     42                                        className : editor.skinClass + ' cke_contextmenu',
     43                                        attributes :
     44                                        {
     45                                                'aria-label' : editor.lang.common.options
     46                                        }
     47                                }
     48                        });
    3949
    4050                        menu.onHide = CKEDITOR.tools.bind( function()
    4151                                {
  • _source/plugins/contextmenu/plugin.js

     
    2323
    2424CKEDITOR.plugins.contextMenu = CKEDITOR.tools.createClass(
    2525{
    26         $ : function( editor )
     26        $ : function( editor, definiton )
    2727        {
    2828                this.id = 'cke_' + CKEDITOR.tools.getNextNumber();
    2929                this.editor = editor;
     
    3636                        },
    3737                        this);
    3838
    39                 this._.definiton =
     39                this._.definiton = definiton ||
    4040                {
    4141                        panel:
    4242                        {
    4343                                className : editor.skinClass + ' cke_contextmenu',
    4444                                attributes :
    4545                                {
    46                                         'aria-label' : editor.lang.common.options
     46                                        'aria-label' : editor.lang.contextmenu.options
    4747                                }
    4848                        }
    4949                };
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy