web-components icon indicating copy to clipboard operation
web-components copied to clipboard

Initial Linebreak not Preserved on Paste

Open jolanglinais opened this issue 5 years ago • 2 comments

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:

  1. Go to the live demo
  2. Select This is ***bold and italic*** text., and select up to the end of the previous paragraph
  3. Press CTRL-C to copy
  4. Press CTRL-V to paste
  5. Note that the linebreak is not preserved

Expected behavior Entire selection should be used in copy/paste

jolanglinais avatar Apr 13 '20 15:04 jolanglinais

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?

Michael-Grover avatar Apr 13 '20 23:04 Michael-Grover

Unsure yet, it's possible but I think looking into this issue further will reveal the answer to what you're asking.

jolanglinais avatar Apr 14 '20 15:04 jolanglinais