Skip to content

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. 😀

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.

3 participants