What is the simplest way to toggle the state of a toolbar button (like it works with the default bold-button)? I can\'t \"get\" to that class i Tinymce that changes the butt
First fire statechange in your command:
editor.fire('FullscreenStateChanged', {state: fullscreenState});
On button onPostRender change button state:
onPostRender: function() { var self = this; editor.on('FullscreenStateChanged', function(e) { self.active(e.state); }); }