trix icon indicating copy to clipboard operation
trix copied to clipboard

Additional header levels

Open walterdavis opened this issue 7 years ago • 8 comments

I have a client request to add additional heading levels (h2 and h3) to the existing h1. Reading through the development process around #78 left me wondering if the addition of buttons and associated block styles was ever made modular, such that I could configure additional heading level buttons, or whether I would have to develop the entire feature from scratch.

walterdavis avatar Feb 01 '19 17:02 walterdavis

The block attributes are kept separately in block_attributes.coffee. You should be able to pretty easily add h2 and h3 there.

oskarolsson-jimdo avatar Feb 11 '19 12:02 oskarolsson-jimdo

This issue has been automatically marked as stale after 90 days of inactivity. It will be closed if no further activity occurs.

stale[bot] avatar May 12 '19 13:05 stale[bot]

This is excellent work! Thanks for contributing it!

walterdavis avatar Jan 07 '20 13:01 walterdavis

https://github.com/lazaronixon/trix-extensions trixext

lazaronixon avatar Jan 09 '20 14:01 lazaronixon

For anyone else reading this in 2021, the trix-extensions is nice in theory, but when trying to restore content, Trix just ignores any custom elements such as H2's etc that the trix-extensions adds. I couldn't find any information about a solution to this and some people just bailed this as Trix doesn't look supported anymore really.

Using summernote for now.

jonathan-bird avatar Sep 21 '21 07:09 jonathan-bird

Any solution for this in 2024?

rgaufman avatar May 28 '24 11:05 rgaufman

I'm also looking for a solution to use in companion with EasyAdminBundle.

checcoux avatar Jul 18 '24 14:07 checcoux

A solutions is desired in 2025 as well, so far no luck finding something existing! :)

bytes-max avatar Mar 19 '25 11:03 bytes-max