Hello all,
I have a small question. Assuming I have the following code:
editor.ui.addRichCombo( 'mycombo', {
....
init : function(){
var combo = this;
//assume that myList is an array of strings
for (var i = 0; i < myList.length; i++{
combo.add( ??, ??, ??);
}
combo.commit();
}
}
So my question is, in which way shall I add the list of strings to the combobox ?
Best regards,
a big fan of CKEDITOR
Richcombo
In editor.ui.add just write this code.as items is associative array to be added in rich combo
onMenu : function()
{
var activeItems = {};
for ( var prop in items )
{
if ( items.hasOwnProperty( prop ) )
activeItems[ prop ] = CKEDITOR.TRISTATE_ON;
}
return activeItems;
}