-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: