Skip to content

Tiptap RTE: Trailing Node extension#18446

Merged
iOvergaard merged 2 commits intov15/devfrom
v15/feature/tiptap-trailing-node
Feb 25, 2025
Merged

Tiptap RTE: Trailing Node extension#18446
iOvergaard merged 2 commits intov15/devfrom
v15/feature/tiptap-trailing-node

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