accordproject/markdown-editor

Inconsistency in Cut vs. Copy

Closed this issue · 0 comments

Describe the bug
A user cannot currently cut properly

To Reproduce
Steps to reproduce the behavior:

  1. Go to the live demo
  2. Highlight first paragraph
  3. Press MOD + X to cut
  4. Notice text is not cut, press Enter
  5. Press MOD + V to paste
  6. Text does paste

Expected behavior
Cut should work the same as copy, but also removing the original text

Additional context
I was experiencing difficulty maintaining the behavior of cut and copy during the Slate migration. This needs to ensure cutting and copying of clause templates in the ContractEditor from cicero-ui works.