JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5
[ckeditor.git] / _source / plugins / menubutton / plugin.js
index ae80bbb..6cfd099 100644 (file)
@@ -5,7 +5,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \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
@@ -35,8 +35,14 @@ CKEDITOR.UI_MENUBUTTON = 5;
                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