CKEDITOR.ui.richCombo
class
Filtering
Methods
-
add( value, html, text, language )CKEDITOR.ui.richCombo#addAdds an entry displayed inside the rich combo panel.
Parameters
value : Stringhtml : Stringtext : Stringlanguage : String
-
Removes all listeners from a rich combo element.
-
render( editor, output )CKEDITOR.ui.richCombo#renderRenders the rich combo.
Parameters
editor : editorThe editor instance which this button is to be used by.
output : ArrayThe output array that the HTML relative to this button will be appended to.
-
Selects a rich combo item based on the first matching result from the given filter function. The filter function takes an object as an argument with
valueandtextfields. The values of these fields match to arguments passed in the add method. In order to obtain a correct result with this method, it is required to open or initialize the rich combo panel.var richCombo = editor.ui.get( 'Font' ); // Required when 'richcombo' was never open in a given editor instance. richCombo.createPanel( editor ); richCombo.select( function( item ) { return item.value === 'Tahoma' || item.text === 'Tahoma'; } );Parameters
callback : FunctionThe function should return
trueif a matching element is found.