I want to insert combobox item in CKEditor toolbar (like fonts toolbar)
Button is easily inserted through this piece of code in plugin.js for custom component:
CKEDITOR.plugins.add('button_name', { init : function(editor){ editor.ui.addButton( 'button_name', { label: 'Button label', command: 'Button function', icon: this.path + 'path/to/icon.png' }); } });
Is there any similar construct for combobox ui item?
Even better:
Is there any listing of all available ui toolbar components?
I believe that it has something to do with this function, but I can't find available item types and their object definitions.
Re: Combobox UI item
See this tutorial: http://docs.cksource.com/CKEditor_3.x/T ... gin_Part_1
In the CKEditor API you will find more UI elements (CKEDITOR.ui.* classes) both for the toolbar and the plugin dialog windows. For a toolbar drop-down list see this: http://docs.cksource.com/ckeditor_api/s ... dRichCombo
Since there is no example available, you can have a look at the _source/plugins/font/plugin.js code, it creates the Font drop-down list.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: Combobox UI item
This post provides an overview (there might be some incorrections) about using a dropdown in the toolbar:
http://alfonsoml.blogspot.com.es/2010/0 ... ditor.html