Does anybody understand how to produce a custom dropdown box in tinymce for Wordpress? I want results with a minimum of wordpress 3..

I've looked the web for any tutorial about this and that i cannot locate one. A hyperlink to some website tutorial could be great.

Thanks ahead of time.

I understand this had been requested a while ago, but when i happened over the same issue, I tought I'd answer this anyways. Maybe it will help another person.

Your comments ought to within the source of the DropDown-Control in tinyMCE switched to be really useful.

You need to simply produce a dropdown first, using createDropMenu(), you'll be able to call the add() approach to add products towards the dropdown.

/**
 * This class is used to create drop menus, a drop menu can be a
 * context menu, or a menu for a list box or a menu bar.
 *
 * @class tinymce.ui.DropMenu
 * @extends tinymce.ui.Menu
 * @example
 * // Adds a menu to the currently active editor instance
 * var dm = tinyMCE.activeEditor.controlManager.createDropMenu('somemenu');
 * 
 * // Add some menu items
 * dm.add({title : 'Menu 1', onclick : function() {
 *     alert('Item 1 was clicked.');
 * }});
 * 
 * dm.add({title : 'Menu 2', onclick : function() {
 *     alert('Item 2 was clicked.');
 * }});
 * 
 * // Adds a submenu
 * var sub1 = dm.addMenu({title : 'Menu 3'});
 * sub1.add({title : 'Menu 1.1', onclick : function() {
 *     alert('Item 1.1 was clicked.');
 * }});
 */