trix icon indicating copy to clipboard operation
trix copied to clipboard

How to change H1 Heading to H3

Open upcoders opened this issue 3 years ago • 2 comments

Hi, and thanks for your excellent work;

I wanna change heading from H1 to H3. How this can be done? Thanks

Details
  • Trix version: 1.3.1
  • Browser name and version: FF 87
  • Operating system: Ubuntu 20

upcoders avatar Mar 29 '21 08:03 upcoders

It seems that this feature does not exist, it would be nice if you could add it to maintain a gerarchy in the Basecamp scripts. All the headings are of the same level and do not allow to create content minimally more complex. Thank you!

brunoprietog avatar Apr 17 '21 09:04 brunoprietog

You can change heading tag like this:

Trix.config.blockAttributes.heading1.tagName = "h3"

rolandasb avatar May 01 '21 05:05 rolandasb