Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone entities on paste #10

Closed
thibaudcolas opened this issue Jan 25, 2018 · 0 comments
Closed

Clone entities on paste #10

thibaudcolas opened this issue Jan 25, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@thibaudcolas
Copy link
Owner

Feature: entities should be cloned when the same entity is referenced in multiple ranges. Each entity should point to a single range.

What is the current behavior?

When pasting from one editor to itself, entity ranges point to the same entity. This is bad, because updating the entity data will affect unexpected ranges. For example, changing a link's target URL should only affect the link where the edit operation is happening, not other links in the document.

What is the expected behavior?

On paste, entities should be cloned so each range has its own entity. Subsequently updating one entity (say a LINK) shouldn't change the data of entities with other ranges.

@thibaudcolas thibaudcolas added the enhancement New feature or request label Jan 25, 2018
@thibaudcolas thibaudcolas self-assigned this Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant