globalRegistry.get('ckEditor5').get('richtextToolbar'); richtextToolbar.set('exampleExtension', { // the path in isActive must match the commandName, to ensure the active state // of the button automatically toggles. isActive: $get('highlightCommand'), isVisible: $get(['formatting', 'Neos.Neos.Ui.ExtensibilityExamples:MyCustomSpan']), component: ExampleButton, icon: 'plus-square', tooltip: 'Mark a span', }, 'before strong'); 1 2 3 4 5 6 7 8 9 10 11