Hi everyone,
Does anyone know where I could find the source of this CKEditor instance? I searched the repository and googled with no luck.
I'd love to repurpose the widget combo button for a project I'm working on. (see image)
http://cksource.com/temp/widget/samples/plugins/widget/widget.html


Hi!
Hi!
What you're looking for is the menubutton plugin. Take a look on this sample:
CKEDITOR.replace( 'editor1', { plugins: 'wysiwygarea,toolbar,basicstyles,menubutton', on: { pluginsLoaded: function() { // Item definitions. // Let's bind them with bold and italic. For fun. var items = { bold: { label: 'Drop-down bold', // Let's use existing commands. command: 'bold', group: 'some_group', icon: 'bold' }, italic: { label: 'Drop-down italic', command: 'italic', group: 'some_group', icon: 'italic' } }; // Items must belong to a group. this.addMenuGroup( 'some_group' ); this.addMenuItems( items ); var editor = this; this.ui.add( 'Drop-down', CKEDITOR.UI_MENUBUTTON, { label: 'Drop-down label', // Let's use an existing icon. icon: 'underline', onMenu: function() { // You can control the state of your commands live, every time // the menu is opened. return { bold: editor.commands.bold.state, // Italic will always be disabled (example). italic: CKEDITOR.TRISTATE_DISABLED }; } } ); } } } );Also take a look on language plugin's source where you'll find another example of drop-down menu.
CKSource - http://cksource.com
Twitter: http://twitter.com/cksource
Facebook: http://www.facebook.com/cksource
Google+: https://plus.google.com/112104262438873905606
Woot, thanks!
Woot, thanks!