The forum operates in read-only mode. Please head to StackOverflow for support.
CKEDITOR.instances.my_editor_name.disableButton('ButtonName');
editor.ui.addButton("ContentInsertTimer", { label: 'My Label', className: 'cke_button_MyClass', command: 'MyCommand' });
$('a.cke_button_MyClass').closest('span.cke_toolbar').hide();
$('a.cke_button_MyClass').closest('span.cke_toolbar').show();
Re: How to disable some button on toolbar in runtime
I add a button in my plugin and give it some class name
I place this button on a separate toolbar in config.js.
To hide this button I do this:
Ti show: