X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fmenubutton%2Fplugin.js;h=6cfd0999e86da8b564297add88e4682ee1c5e5b9;hp=ae80bbba33fedc2cee6ecef83af4b47cda2302ef;hb=9afde8772159bd3436f1f5b7862960307710ae5a;hpb=614511639979907ceb0da3614122a4d8eb963ad4 diff --git a/_source/plugins/menubutton/plugin.js b/_source/plugins/menubutton/plugin.js index ae80bbb..6cfd099 100644 --- a/_source/plugins/menubutton/plugin.js +++ b/_source/plugins/menubutton/plugin.js @@ -5,7 +5,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license CKEDITOR.plugins.add( 'menubutton', { - requires : [ 'button', 'contextmenu' ], + requires : [ 'button', 'menu' ], beforeInit : function( editor ) { editor.ui.addHandler( CKEDITOR.UI_MENUBUTTON, CKEDITOR.ui.menuButton.handler ); @@ -35,8 +35,14 @@ CKEDITOR.UI_MENUBUTTON = 5; var menu = _.menu; if ( !menu ) { - menu = _.menu = new CKEDITOR.plugins.contextMenu( editor ); - menu.definition.panel.attributes[ 'aria-label' ] = editor.lang.common.options; + menu = _.menu = new CKEDITOR.menu( editor, + { + panel: + { + className : editor.skinClass + ' cke_contextmenu', + attributes : { 'aria-label' : editor.lang.common.options } + } + }); menu.onHide = CKEDITOR.tools.bind( function() {