I am trying to add a custom select drop down to the tool bar. In the API, it says to use the following:
I am confused about its use, as the API can be confusing. Does anyone have working example code of this? It would be much appreciated!
CKEDITOR.ui.dialog.select(dialogObj, elementDefinition, htmlList);
I am confused about its use, as the API can be confusing. Does anyone have working example code of this? It would be much appreciated!
Re: Add custom select menu to toolbar?
Re: Add custom select menu to toolbar?
I'm afraid you got the wrong guide from document , the API you put there is more or less about the select field in an editor dialog, so it's irrelevant.
I think you're intended to create a combo on the toolbar instead, which wouldn't be that easy, but you could turn to the format plugin( which interface as a combo ) for reference:
https://dev.fckeditor.net/browser/CKEdi ... /plugin.js