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

V15: TinyMce triggers navigation when clicking links #17781

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

iOvergaard
Copy link
Contributor

Description

Fixes #17748

Tinymce inserts links using the a-tag, which is triggering our navigation because we cannot control tinymce's rendering. We can however control which links we trigger on the for the 'click' event by using composedPath() and ensuring that we are inside one of the block entry elements.

Tinymce inserts links using the a-tag, which is triggering our navigation because we cannot control tinymce's rendering. We can however control which links we trigger on the for the 'click' event by using `composedPath()` and ensuring that we are inside one of the block entry elements.
Copy link
Member

@nielslyngsoe nielslyngsoe left a comment

Choose a reason for hiding this comment

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

Work really well, the expected result both for a tags and for Blocks.

@nielslyngsoe nielslyngsoe merged commit 66c13e5 into release/15.1 Dec 11, 2024
10 of 12 checks passed
@nielslyngsoe nielslyngsoe deleted the v15/hotfix/tinymce-links branch December 11, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants