You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
mrspence
added a commit
to mrspence/header
that referenced
this issue
Dec 17, 2021
Allow a Header Tool's text to include break line `<br>` tags when a user presses Shift + Enter.
By default, this is disabled, the developer can choose to enable through the tool's config:
```
config: {
allowLineBreaks: true,
}
```
Fixeseditor-js#73
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.The text was updated successfully, but these errors were encountered: