Skip to content

Tiptap RTE: Reusable toolbar menu component #18483

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

Merged
merged 11 commits into from
Feb 27, 2025

Conversation

leekelleher
Copy link
Member

Description

After PRs #18364, #18365 and #18443, I'd noticed code duplication. I have abstracted these out to a reusable Tiptap toolbar menu component, where a menu can be defined in the manifest and a corresponding API can handle the click/execute() method.

Also, I picked up on a couple of other Tiptap snags, they were quite minor, so I've bundled them in this PR.

How to test?

If using the mock data, then go to the "All RTEs" page, (if using the server, enable the toolbar buttons for the Tiptap RTE and go to a corresponding page). Then test that the Font Family, Font Size, Style Select and Table toolbar buttons work as expected.

Copy link
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.

LGTM but there are merge conflicts after the other tiptap PR was merged. Will you have a look at that, @leekelleher?

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/packages/tiptap/extensions/manifests.ts
#	src/Umbraco.Web.UI.Client/src/packages/tiptap/extensions/tiptap-toolbar.extension.ts
@leekelleher
Copy link
Member Author

@iOvergaard I didn't mean to re-request a review! 🤦 I've resolved the merge conflict now. 😀

@leekelleher leekelleher merged commit f6ab6ee into v15/dev Feb 27, 2025
22 of 23 checks passed
@leekelleher leekelleher deleted the v15/chore/tiptap-toolbar-menu branch February 27, 2025 09:52
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