Hi,
I'm new with CK Editor 3.6 and would like to add an option in this selectbox :
Can you tell me what is wrong in my code ?
Thanks
I'm new with CK Editor 3.6 and would like to add an option in this selectbox :
Dialog window name : link
Tab name : info
Element ID : linkType
Element type : select
Can you tell me what is wrong in my code ?
CKEDITOR.on('dialogDefinition', function( ev ) {
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
if ( dialogName == 'link' ) {
var infoTab = dialogDefinition.getContents( 'info' );
var linkTypeField = infoTab.get( 'linkType' ); // I think error is on this line ??!
linkTypeField.add('myoption', 'myvalue'); //Should add an option at the end
}
}
Thanks

Re: How to add an option in selectbox ?
But with no success ...
Re: How to add an option in selectbox ?