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 Table edit plugin anchorContainerSelector query #2499

Conversation

Andres-CT98
Copy link
Contributor

Description:

The anchor container functionality was unusable by all Table edit plugin features due to the use of getDOMHelper().queryElements() on TableEditPlugin, as it was looking for the anchor container inside the editor when it is expected to always be outside of it.

Fix

Use getDocument().querySelector() as it will fetch the anchor container from outside the editor. Test cases were added to cover this functionality.

@Andres-CT98 Andres-CT98 marked this pull request as ready for review March 8, 2024 23:02
@Andres-CT98 Andres-CT98 merged commit 9e8af0f into master Mar 9, 2024
7 checks passed
@Andres-CT98 Andres-CT98 deleted the u/acampostams/TableEditPlugin-anchorcontainer-search-outside-editor branch March 9, 2024 04:23
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 this pull request may close these issues.

2 participants