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

Nested Quill Editors and MutationObserver #1847

Closed
kadams-turner opened this issue Dec 5, 2017 · 0 comments · Fixed by #3223
Closed

Nested Quill Editors and MutationObserver #1847

kadams-turner opened this issue Dec 5, 2017 · 0 comments · Fixed by #3223

Comments

@kadams-turner
Copy link

I am having an issue with quill editors nested inside of quill blots (imagine an image blot with a title field that is a quill richtext editor). In Parchment’s scroll.ts, the MutationObserver for the parent editor hears any mutation in the nested field, and applies the change to itself. This leads to behavior where text typed in the nested field is applied to both the nested editor and the parent editor. I believe this behavior can be fixed by checking the target node of the MutationRecord, looking up the parent tree for the closest .ql-editor, and only applying the update to the quill instance with that DOM node. I am using quill version 1.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant