Skip to content

Tiptap RTE: Anchor extension + toolbar item#18575

Merged
iOvergaard merged 10 commits intov15/devfrom
v15/feature/tiptap-ext-anchor
Mar 10, 2025
Merged

Tiptap RTE: Anchor extension + toolbar item#18575
iOvergaard merged 10 commits intov15/devfrom
v15/feature/tiptap-ext-anchor

Conversation

@leekelleher
Copy link
Copy Markdown
Member

Description

Adds the Anchor extension + toolbar button + modal to Tiptap RTE, for inserting/editing anchor points, (e.g. <a id="hash"></a>) in the contents.

Another step towards feature parity with TinyMCE RTE.

The Anchor extension has been enabled in the default Rich Text Essentials bundle extension, e.g. it's always available,even if the toolbar item is not added.

How to test?

If using the mock data, then go to the "All RTEs" page and see how it works. If using the server, then configure the Tiptap RTE to add the "Anchor" toolbar button, then try it out on a document.

@leekelleher leekelleher marked this pull request as draft March 5, 2025 14:28
@leekelleher leekelleher marked this pull request as ready for review March 5, 2025 15:31
Copy link
Copy Markdown
Contributor

@iOvergaard iOvergaard left a comment

Choose a reason for hiding this comment

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

Looks good, just highlighted a couple of localization needs.

@leekelleher leekelleher requested a review from iOvergaard March 10, 2025 10:27
@leekelleher
Copy link
Copy Markdown
Member Author

@iOvergaard Thank you for the feedback. I've added the localizations and scoped the Anchor modal token + alias to be within the Tiptap package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants