/*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
CKEDITOR.plugins.add( 'menubutton',\r
{\r
- requires : [ 'button', 'contextmenu' ],\r
+ requires : [ 'button', 'menu' ],\r
beforeInit : function( editor )\r
{\r
editor.ui.addHandler( CKEDITOR.UI_MENUBUTTON, CKEDITOR.ui.menuButton.handler );\r
var menu = _.menu;\r
if ( !menu )\r
{\r
- menu = _.menu = new CKEDITOR.plugins.contextMenu( editor );\r
- menu.definition.panel.attributes[ 'aria-label' ] = editor.lang.common.options;\r
+ menu = _.menu = new CKEDITOR.menu( editor,\r
+ {\r
+ panel:\r
+ {\r
+ className : editor.skinClass + ' cke_contextmenu',\r
+ attributes : { 'aria-label' : editor.lang.common.options }\r
+ }\r
+ });\r
\r
menu.onHide = CKEDITOR.tools.bind( function()\r
{\r