Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

feature: idempotent copy-paste? #1731

Closed
Pomax opened this issue Apr 17, 2018 · 2 comments
Closed

feature: idempotent copy-paste? #1731

Pomax opened this issue Apr 17, 2018 · 2 comments

Comments

@Pomax
Copy link

Pomax commented Apr 17, 2018

We've using Wagtail the at the Mozilla Foundation, which is a CMS that uses draft.js as basis for its rich text editor, and noticed that copy/paste from one rich text field to another loses a lot of the markup. That feels like a bug, but maybe it's not, so if it's not please consider this a feature request to make copy-paste idempotent.

Right it's possible to have content that can be copied, but cannot be pasted, with links, horizontal rules, and even empty paragraphs losing their markup on paste, which is quite problematic =)

There is an issue for this over on the the draftail (wagtail's code on top of draft.js) repo, springload/draftail#147 (comment), but it would be super great if this was something that could be addressed in draftjs itself.

@trevtrich
Copy link
Contributor

@Pomax there's been some discussion around this. There's quite a few of us that would like to see this. See #787.

@Pomax
Copy link
Author

Pomax commented Apr 18, 2018

this is close enough to a duplicate of that to warrant closing. Looking forward to movement on 787!

@Pomax Pomax closed this as completed Apr 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants