I want to add a custom class to a custom button in TinyMCE 6, however it doesn't seem to be possible anymore.
const setup = (editor: Editor, url: string): void => {
editor.ui.registry.addButton('blue-box', {
icon: 'table-cell-select-all',
class: 'MyCoolBtn',
tooltip: "Blue Box",
onAction: () => {
editor.setContent('<p>content added from blue-box</p>');
}
});
};
In this example, I tried to add class: MyCoolBtn, however, I received an error because there's no class instance on the addButton method.
Is there any possibility to add a class or add a custom design to specific buttons in TinyMce 6?
