-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Conversation
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
# 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 perhaps we can have table icons as in TinyMCE? Seems to be missing cell, row and table properties, but perhaps it will be added later? |
👍
It'll be added later, all incremental enhancements. 🚀 😁 |
@leekelleher not sure there are great icons for all table actions - at least some are missing in Lucide icons: |
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
tiptap-umb-table.extension.ts
is large, this may need to be broken down into smaller code files.enableContentCheck
option (ininput-tiptap.element.ts
) is currently commented out, as it's showing false-positives.