-
Notifications
You must be signed in to change notification settings - Fork 67
Description
Right now it is impossible to copy and paste the content of one draftail editor into another. It seems fairly important (I'm tempted to say crucial?) to make sure that a copy action puts all the data in the clipboard that is necessary to properly paste it back in, but I haven't dug into the code and have no idea how much work that would be. Hopefully not so much as to make it a low priority job =)
STR that clearly demonstrate copy/paste failing:
- load up https://www.draftail.org/
- copy the editor content to clipboard
- reload the page
- wipe the editor and paste the clipboard
expected result: the original content
actual result: loads of markup has disappeared (links are gone, hr are gone, empty lines are gone both inside and outside of code blocks)
Does draftail use the clipboard API to make sure that a copy action uses the true markup as referenced by the renderer, rather than a derivative markup based on what the browser rendered?