I need a dropdown submenu in the dropdown menu in the plugin. but the problem is that the menu shows that it has a list of submenus, but the contents of the list do not load. empty submenu.
Snapshot:

code:
CKEDITOR.plugins.add( 'microdata', { requires : [ 'styles', 'button' ], init : function( editor ) { var markup= editor.config.languages, items = {}; for ( var i = 0 ; i < markup.length ; i++ ) { var parts = markup[i].split( '=' ); var name= parts[1].split('org/'); items[ parts[ 0 ] ] = { label : parts[ 0 ], group : 'microdata', icon: this.path + 'icon1.png' , order : i, getItems: function() { var selection = editor.getSelection(); return { name: CKEDITOR.TRISTATE_OFF, friend: CKEDITOR.TRISTATE_OFF }; } }; var name= { label: 'name', group: 'microdata', //command: 'nameCmd', order: 5 } editor.addMenuGroup( 'microdata' ); editor.addMenuItems( items,name);/*, friend: { label: 'friend', group: 'microdata', //command: 'friendCmd', order: 10 } );*/ editor.ui.add( 'Microdata', CKEDITOR.UI_MENUBUTTON, { label: 'Microdata', command: 'Microdata', modes : { wysiwyg:1 }, className : 'cke_button_microdata', icon: this.path + 'icon1.png' , onMenu : function() { var activeItems = {}; for ( var prop in items ) { if ( items.hasOwnProperty( prop ) ) activeItems[ prop ] = CKEDITOR.TRISTATE_ON; } return activeItems; } } ); } } ); CKEDITOR.config.languages = [ 'Place=http://schema.org/Place'];
Commands not yet added.
Any help is greatly appreciated.
source share