editor-js / editor-js/header

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

Open
#73 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
115
Forks
123
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/editor-js/paragraph/blob/master/src/index.js#L189) whereas this header plugin doesn't.

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.