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

Tiptap RTE: Table extension enhancements #18365

Merged
merged 31 commits into from
Feb 19, 2025
Merged

Conversation

leekelleher
Copy link
Member

@leekelleher leekelleher commented Feb 18, 2025

Description

Enhancements to the Tiptap Table extension.

Adds a cascading menu to the Tiptap toolbar for Table actions.

Adds "grips" to the current column and row, for bulk selecting cells.

The "Insert Table" designer took inspiration from the TinyMCE feature.

Recording.2025-02-18.172030.mp4

A hover/bubble menu for contextual use will come in a later PR, it is still under development.

How to test?

On your Tiptap RTE, enable the Table extension and add the Table menu to the toolbar. Then play around with it as desired: adding tables with varying columns/rows; appending/prepending columns/rows; merging/splitting cells; deleting columns/rows/table; etc.

Known issues

  • The Umbraco/Tiptap Table extension file, tiptap-umb-table.extension.ts is large, this may need to be broken down into smaller code files.
  • The enableContentCheck option (in input-tiptap.element.ts) is currently commented out, as it's showing false-positives.
  • The tooltip Table menu item labels aren't localized yet.
  • Unsure whether to introduce icons for each of the Table features, we can discuss.

Provides a popover with table menu actions.
from "plugins" folder to "extensions" subfolder.
so that it becomes optional in extended classes.
which does nothing, but satisfies the extension loader controller.
to match TinyMCE toolbar layout.
Example with a Style Select menu, with default (hard coded) options,
similar to TinyMCE's unconfigured Style Select menu.
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/packages/tiptap/extensions/manifests.ts
@leekelleher leekelleher changed the title Tiptap Table extension enhancements Tiptap RTE: Table extension enhancements Feb 18, 2025
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/packages/tiptap/components/cascading-menu-popover/cascading-menu-popover.element.ts
#	src/Umbraco.Web.UI.Client/src/packages/tiptap/extensions/manifests.ts
as its development isn't ready yet.
as it wasn't been used.
I expect this will become the bubble menu feature.
@leekelleher leekelleher marked this pull request as ready for review February 18, 2025 17:36
@bjarnef
Copy link
Contributor

bjarnef commented Feb 19, 2025

@leekelleher perhaps we can have table icons as in TinyMCE?
https://lucide.dev/icons/?search=table

image

Seems to be missing cell, row and table properties, but perhaps it will be added later?

@leekelleher
Copy link
Member Author

@leekelleher perhaps we can have table icons as in TinyMCE? https://lucide.dev/icons/?search=table

👍

Seems to be missing cell, row and table properties, but perhaps it will be added later?

It'll be added later, all incremental enhancements. 🚀 😁

@bjarnef
Copy link
Contributor

bjarnef commented Feb 19, 2025

@leekelleher not sure there are great icons for all table actions - at least some are missing in Lucide icons:
lucide-icons/lucide#2767

@iOvergaard iOvergaard merged commit 040d4fe into v15/dev Feb 19, 2025
22 of 23 checks passed
@iOvergaard iOvergaard deleted the v15/feature/tiptap-table branch February 19, 2025 12:00
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.

None yet

3 participants