Skip to main content

How can i Configure my Trix Editor / ActionText field?

General • Asked by will

Is there a way to add / delete buttons from the tool bar for action_text? For eg, I'd like to add more semantic header levels (h2-h4).


I made a start with this, adding h2, h3 and underline elements. I don't know if this is the right way to do it but:

https://stackoverflow.com/questions/58805984/add-buttons-to-rails-actiontext-toolbar/58807418#58807418


Had the same problem, your solution helped me a lot. Would be cool if there was a better way to edit the toolbar of trix.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.