i want to change inline ckeditor toolbar buttons on one condition like :
i tried it by 2 ways
1.on focus i tired to destroy existing editor and create new with following type of config.
if( $('#scheduled_email_filter_id').val() ) {
CKEDITOR.inline( editorId,{
toolbar : 'Toolbar_One',
extraPlugins : 'Plugin1,Plugin2,Plugin3,Plugin4'
});
} else {
CKEDITOR.inline( editorId,{
toolbar : 'Toolbar_Two',
extraPlugins : 'Plugin1,Plugin2,Plugin3'
});
}
2. also i tired to fire event "configLoaded" on focus
by editor.fire('configLoaded');
but both are not working is any one know other way to achive this .