Open mrspence opened 2 years ago
Currently the Header Tool does not support line breaks like other Tools do. Normally a user can press Shift + Enter which adds a line break. However at the moment this tool strips line breaks out.
This pull request fixes:
<br>
This pull request adds a config parameter allowLineBreaks: {Boolean} that allows the developer to enable line breaks should they need.
allowLineBreaks: {Boolean}
config: { allowLineBreaks: true, // default: false }
By default, line breaks are not enabled, as per the current status quo.
What's the issue?
Currently the Header Tool does not support line breaks like other Tools do. Normally a user can press Shift + Enter which adds a line break. However at the moment this tool strips line breaks out.
This pull request fixes:
<br>
when shift+enter pressed - editor-js/header repoSolution
This pull request adds a config parameter
allowLineBreaks: {Boolean}
that allows the developer to enable line breaks should they need.By default, line breaks are not enabled, as per the current status quo.