What we are attempting to achieve is retaining line breaks in the HTML that Quill produces without sacrificing other functionality.
Steps to Reproduce
- Add the following override to Quill
class BreakBlock extends Block {
static tagName = 'DIV'
html(): string {
// This prevents <br /> tags from being removed when calling getSemanticHTML()
return this.domNode.outerHTML
}
}
Quill.register(BreakBlock, true)
- Add some text with multiple words to the editor (eg My text)
- Copy the word "My"
- Press enter to add a line break
- Paste
Expected behaviour
Content to look like
My text
My
Actual behaviour
Content looks like
My text
My text
What we are attempting to achieve is retaining line breaks in the HTML that Quill produces without sacrificing other functionality.
Steps to Reproduce
Expected behaviour
Content to look like
Actual behaviour
Content looks like