web-components
web-components copied to clipboard
Initial Linebreak not Preserved on Paste
Describe the bug Copy/paste within the editor doesn't preserve a linebreak if it is the beginning of the copy.
To Reproduce Steps to reproduce the behavior:
- Go to the live demo
- Select
This is ***bold and italic*** text., and select up to the end of the previous paragraph - Press CTRL-C to copy
- Press CTRL-V to paste
- Note that the linebreak is not preserved
Expected behavior Entire selection should be used in copy/paste
I noticed that linebreaks are not preserved in general while pasting, is that part of this issue? Should this issue be expanded to encompass that or should a new issue be made?
Unsure yet, it's possible but I think looking into this issue further will reveal the answer to what you're asking.