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: Add CSS support for extensions #18075

Open
wants to merge 2 commits into
base: v15/dev
Choose a base branch
from

Conversation

leekelleher
Copy link
Member

Description

This feature is intended for Umbraco 15.3.

Introduces a getStyles() method for Tiptap extensions. This enables an individual Tiptap extension to define their own CSS rules.

For the initial implementation, the CSS rules for extensions were all placed within the umb-input-tiptap component regardless whether they are enabled or not.

This PR moves the CSS rules for the built-in Embedded Media, Image and Table to its own extension.

How to test

With the Tiptap RTE, enable any of the following extensions (Embedded Media, Image and/or Table), load up the RTE on a document, are the styles for those extensions present?

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/packages/tiptap/components/input-tiptap/input-tiptap.element.ts
@leekelleher leekelleher enabled auto-merge (squash) January 30, 2025 10:39
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.

1 participant