Hi everyone, I'm new here. Trying to customize tri...
# avo-2
a
Hi everyone, I'm new here. Trying to customize trix editor and add additional header levels (h2 and h3). Has anyone done this?
l
Hey @adventurous-crayon-9274. can you show me an example/tutorial/article on how that is done? I can guide you after I see what needs to be done
a
Sure, I set up a github repo here https://github.com/smazzin/trixdemo I didn't really follow a tutorial, I came across this question on SO https://stackoverflow.com/questions/71712319/how-to-customize-the-trix-toolbar-in-rails-7-when-using-importmaps
Just trying to piece things together at this point.
l
I had a look at the tutorial... the simplest way to do it is to generate a custom field, add your own custom JS file and then implement your own trix field
you can start from our own
trix
field and augment it
then, if it's modular enough we could even port it to Avo as the regular trix field
a
Thanks, I'll take a look into this.
l
got it! let me know of your progress and when/where I can help✌️