Skip to content

V15: TinyMce triggers navigation when clicking links#17781

Merged
nielslyngsoe merged 2 commits intorelease/15.1from
v15/hotfix/tinymce-links
Dec 11, 2024
Merged

V15: TinyMce triggers navigation when clicking links#17781
nielslyngsoe merged 2 commits intorelease/15.1from
v15/hotfix/tinymce-links

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
@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