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

fix(block): remember plugin's content element instead of dom search #2311

Merged
merged 4 commits into from
Mar 20, 2023

Conversation

neSpecc
Copy link
Member

@neSpecc neSpecc commented Mar 17, 2023

This PR fixes several possible bugs caused by browser extensions (Grammarly, Quillbot, etc) that add their own nodes next to the tool-rendered element

image

Previously, we were searching the plugin's element inside our .ce-block__content element children filtering extension nodes by hard-coded selectors.

Now I'm saving the reference to the tool's element when we render it. Then it could be guaranteed accessed later.

Resolves #2269
Resolves #2235
Resolves #1519

Copy link
Member

@ilyamore88 ilyamore88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @neSpecc, what about tests for this case?

@specc
Copy link

specc commented Mar 18, 2023

hey @ilyamore88, I actually dont work on this project. Maybe you send to the wrong person

@neSpecc
Copy link
Member Author

neSpecc commented Mar 20, 2023

Hi, @neSpecc, what about tests for this case?

Done

@neSpecc neSpecc merged commit 5257b06 into next Mar 20, 2023
@neSpecc neSpecc deleted the fix/browser-extensions-bugs branch March 20, 2023 20:28
christoph-kluge added a commit to christoph-kluge/editor.js that referenced this pull request Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants