Simon Moro said over 2 years ago on Adding Custom Buttons to Action Text :
This is great, thank you! I have been looking into how to do this. I've found it easy to add alignment and sizing. However, is there a flag to make Trix auto remove a previously set value. For example, when I choose another color, they are both selected. I imagine it's a simple flag I'm missing? Perhaps in the Trix.config.textAttributes setup? Essentially, looking for a replace method rather than adding the value to the style attribute.

Thanks!