how to disable a button added by a plugin in gutenberg toolbar?
I have found that you could add a className attribute to the button and select the button by document.getElementsByClassName query selector. so the code would be this ( function( wp ) { var MyCustomButton = function( props ) { return wp.element.createElement( wp.editor.RichTextToolbarButton, { icon: ‘editor-code’, title: ‘Sample output’, className: “foo” onClick: function() { console.log( ‘toggle … Read more