header icon indicating copy to clipboard operation
header copied to clipboard

Header not allowing `<br>` when shift+enter pressed

Open mrspence opened this issue 3 years ago • 1 comments

This plugin does not allow the user to press shift + Enter to create an inline break. This is supported in the paragraph plugin but not in this one yet! :-)

I believe the issue resides within the sanitize method. The Paragraph plugin has a "br" sanatize rule whereas this header plugin doesn't.

Proposed fix: extend plugin config to allow enabling of br tags in Header.

mrspence avatar Dec 17 '21 21:12 mrspence

This would be really useful, especially if you have margins for h tags to get the spacing to the next content block.

rx2347 avatar Apr 01 '23 13:04 rx2347