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: Trailing Node extension #18446

Merged
merged 2 commits into from
Feb 25, 2025

Conversation

leekelleher
Copy link
Member

Description

Adds the Trailing Node extension for Tiptap RTE.

Why would we need this?

To quote the Tiptap documentation... https://tiptap.dev/docs/examples/experiments/trailing-node

The Trailing Node extension automatically appends an invisible node at the end of the document. This is useful for purposes like adding a consistent footer or signature.

In the example shown here, the trailing node is left empty to enable you to place your caret behind the code block.

Since this extension is not yet published officially, you may need to copy the source code and create your own extension.

I have copied the code verbatim, so that we can easily replace it if/when Tiptap decide to release an official extension.

How to test?

Try adding a code block to the end of the Tiptap RTE content. You'll notice that you can't place the cursor after the code block. This extension adds a trailing paragraph, so the cursor can be placed at the end of the content.

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/packages/tiptap/extensions/core/rich-text-essentials.tiptap-api.ts
@iOvergaard iOvergaard disabled auto-merge February 25, 2025 14:04
@iOvergaard iOvergaard merged commit 0794ff9 into v15/dev Feb 25, 2025
21 of 23 checks passed
@iOvergaard iOvergaard deleted the v15/feature/tiptap-trailing-node branch February 25, 2025 14:04
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.

2 participants