X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fmenubutton%2Fplugin.js;h=414edac782b166c0847c4dae435932ff13393c5a;hb=a272c66d841421f8bf933c16535bdcde1c4649fc;hp=ae80bbba33fedc2cee6ecef83af4b47cda2302ef;hpb=614511639979907ceb0da3614122a4d8eb963ad4;p=ckeditor.git diff --git a/_source/plugins/menubutton/plugin.js b/_source/plugins/menubutton/plugin.js index ae80bbb..414edac 100644 --- a/_source/plugins/menubutton/plugin.js +++ b/_source/plugins/menubutton/plugin.js @@ -1,11 +1,11 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. 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 ); @@ -17,7 +17,7 @@ CKEDITOR.plugins.add( 'menubutton', * @constant * @example */ -CKEDITOR.UI_MENUBUTTON = 5; +CKEDITOR.UI_MENUBUTTON = 'menubutton'; (function() { @@ -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() {