I’m using the Quill 2.0.2 JavaScript library to edit content with different heading styles (h1
to h4
). Currently, when I’m typing with the h2
style and press ENTER, Quill switches to the “Normal” style (<p>
). Instead, I want it to switch to the h3
style.
I’ve tried customizing the keyboard bindings, but with no success, and doesn’t seems it is the right approach. How can I make Quill keep the header format and switch from h2
to h3
when ENTER is pressed?