CKEDITOR.ui.richCombo
class
Filtering
Methods
-
add( value, html, text, language )
CKEDITOR.ui.richCombo#add
Adds an entry displayed inside the rich combo panel.
Parameters
value : String
html : String
text : String
language : String
-
Removes all listeners from a rich combo element.
-
render( editor, output )
CKEDITOR.ui.richCombo#render
Renders the rich combo.
Parameters
editor : editor
The editor instance which this button is to be used by.
output : Array
The 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
value
andtext
fields. 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 : Function
The function should return
true
if a matching element is found.