Preformatted block collapses new lines when pasting in text #27660
Labels
[Block] Preformatted
Affects the Preformatted Block - used for showing preformatted text
[Block] Verse
Affects the Verse block
[Type] Bug
An existing feature does not function as intended
Describe the bug
Text copied in from outside sources is often wrapped in (hidden) HTML tags. When pasting this content into Preformatted or Verse blocks, the hidden tags seem to cause the text to lose its new lines and get pasted as a single line.
To reproduce
For reference, this is the output I see in the browser console:
Expected behavior
New lines in pasted content should be preserved
Screenshots
Editor version (please complete the following information):
master
branch latest commit at time of writing e5b9df1Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: