I'm working with a trix editor in a Rails 5.0.1 application, and while the configuration talks in depth about adding buttons and a rather deep dive on changes, all I'm looking to do is (whether through coffeescript or in the bundled .js/coffee files) disable the Blockquote and Code buttons in the WYSIWYG editor so that they do not appear at all.
I will be checking this issue regularly and am happy to offer up any thoughts or feedback if anyone has any. Hope it's straightforward and I'm missing something obvious.
Easiest thing to do would be hiding them with CSS:
trix-toolbar [data-trix-attribute='quote'],
trix-toolbar [data-trix-attribute='code'] {
display: none;
}
Thank you, worked perfectly.
Most helpful comment
Easiest thing to do would be hiding them with CSS: