Skip to content

Conversation

@leekelleher
Copy link
Member

Description

Adds Tiptap toolbar items for Font Family and Font Size select options.

Recording.2025-02-24.190921.mp4

The bulk of the changes in this PR are related to how the Span (Tiptap extension) handles updates to the style attribute.

Whilst the font menu options are hard-coded in this PR, the feature is an incremental enhancement for feature parity with TinyMCE. Upcoming iterations will start to add further configuration and consolidation of reusable components (to deduplicate code).

How to test?

If using the mock data, then go to the "All RTEs" page and see how it works. If using the server, then configure the Tiptap RTE with the Font Family and Font Size toolbar items, then try it out on a document.

to show the font buttons in the toolbar
Changed to be a `Mark`, as `Node`s aren't allowed within paragraphs.

Unregistered the `TextStyle` extension,
as it conflicts with the global `style` attribute feature.
@iOvergaard iOvergaard disabled auto-merge February 25, 2025 08:13
@iOvergaard iOvergaard merged commit e448f4b into v15/dev Feb 25, 2025
21 of 23 checks passed
@iOvergaard iOvergaard deleted the v15/feature/tiptap-font-select branch February 25, 2025 08:13
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