# TipTap: Is it possible to not have an empty P tag at end of content

**URL:** <https://forum.umbraco.com/t/tiptap-is-it-possible-to-not-have-an-empty-p-tag-at-end-of-content/6414>\
**Category:** Questions\
**Tags:** bellissima, v16, tip-tap\
**Created:** [October 22, 2025, 10:56am UTC](https://forum.umbraco.com/t/tiptap-is-it-possible-to-not-have-an-empty-p-tag-at-end-of-content/6414 "2025-10-22T10:56:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![warren](https://forum.umbraco.com/user_avatar/forum.umbraco.com/warren/32/78_2.png) [@warren](https://forum.umbraco.com/u/warren)\
**Post date:** [October 22, 2025, 10:56am UTC](https://forum.umbraco.com/t/tiptap-is-it-possible-to-not-have-an-empty-p-tag-at-end-of-content/6414/1 "2025-10-22T10:56:20Z")

</div>

Hello 👋  
I am wondering if anyone else has been able to use TipTap where it does not always automatically append an empty P tag to the HTML content in the editor.

I have reported this as an issue on the tracker, but I am not 100% sure if its something Umbraco can help fix or if this comes from TipTap itself.

> <https://github.com/umbraco/Umbraco-CMS/issues/20606>
>
> \### Which Umbraco version are you using?
> 
> 16.3.0
> 
> \### Bug summary
> 
> Using the Tip…Tap RTE when adding content I am unable to remove the last empty \<p\> tag that gets added to the content.
> 
> \### Specifics
> 
> https://github.com/user-attachments/assets/4877a1b4-d4af-4399-98c9-f87f58fc7799
> 
> \### Steps to reproduce
> 
> \* Use TipTap on a content node
> \* Add some content such as some simple text followed by a list of items
> \* Try to ensure there is no trailing empty \<p\> tag
> 
> \### Expected result / actual result
> 
> To be able to remove the last empty \<p\> tag by either using the view source button of the TipTap editor and updating the markup to remove it, or using TipTap directly itself to remove it.
> 
> \## Why
> Well an empty \<p\> tag regardless of having content inside it adds more spacing to designs and content of pages.

Has anyone encountered this or resolved it in anyway?

Thanks,  
Warren 🙂

---

<div class="post-metadata">

**Author:** ![mistyn8](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mistyn8/32/671_2.png) [@mistyn8](https://forum.umbraco.com/u/mistyn8)\
**Post date:** [October 22, 2025, 11:28am UTC](https://forum.umbraco.com/t/tiptap-is-it-possible-to-not-have-an-empty-p-tag-at-end-of-content/6414/2 "2025-10-22T11:28:15Z")

</div>

![image](https://forum.umbraco.com/uploads/default/original/2X/f/f97ea650d7c943ac037b849363b4f481371f29aa.png)

Maybe tip-tap list extension..

> <https://github.com/ueberdosis/tiptap/blob/f1fc4696a69214bc9165165fe5cf8003fdb2f96a/packages/extension-list/src/item/list-item.ts#L103>

---

<div class="post-metadata">

**Author:** ![warren](https://forum.umbraco.com/user_avatar/forum.umbraco.com/warren/32/78_2.png) [@warren](https://forum.umbraco.com/u/warren)\
**Post date:** [October 22, 2025, 12:00pm UTC](https://forum.umbraco.com/t/tiptap-is-it-possible-to-not-have-an-empty-p-tag-at-end-of-content/6414/3 "2025-10-22T12:00:47Z")

</div>

Thanks Mike  
Saw your reply on the issue as well.

Will discuss with tester who raised this and triple check it was only with list items.  
If so then least we know the cause and then I need to figure out how/what to do.

---

<div class="post-metadata">

**Author:** ![leekelleher](https://forum.umbraco.com/user_avatar/forum.umbraco.com/leekelleher/32/121_2.png) [@leekelleher](https://forum.umbraco.com/u/leekelleher)\
**Post date:** [October 22, 2025, 1:32pm UTC](https://forum.umbraco.com/t/tiptap-is-it-possible-to-not-have-an-empty-p-tag-at-end-of-content/6414/4 "2025-10-22T13:32:46Z")

</div>

It’s an Umbraco issue, because we included the [Trailing Node extension](https://tiptap.dev/docs/editor/extensions/functionality/trailing-node) (from Tiptap). As we noticed during testing that it wasn’t possible in the Tiptap RTE to place the cursor after certain contents, e.g. lists, code blocks, tables.

I agree that it’s annoying to have a trailing empty `<p></p>` at the end of the content, so we’ve made it toggleable for v16.3.0, (untick the “Trailing Node” capability in the data-type configuration).

---

<div class="post-metadata">

**Author:** ![warren](https://forum.umbraco.com/user_avatar/forum.umbraco.com/warren/32/78_2.png) [@warren](https://forum.umbraco.com/u/warren)\
**Post date:** [October 22, 2025, 1:40pm UTC](https://forum.umbraco.com/t/tiptap-is-it-possible-to-not-have-an-empty-p-tag-at-end-of-content/6414/5 "2025-10-22T13:40:51Z")

</div>

That’s awesome Lee.  
Just tested it out and can confirm it works in 16.3.0 and can then put this change into the solution for the content editors to be happy.

For anyone curious who reads this thread in the future, you can find it here under interactive elements to disable/toggle off.

 ![A screenshot displays the settings for a Rich Text Editor in a content management system, highlighting options for text formatting, HTML elements, interactive elements such as 'Trailing Node', and embeds and media. (Captioned by AI)](https://forum.umbraco.com/uploads/default/original/2X/7/7bf6af29686b97c2a83d5c9c059db8a7375425af.png)

---

<div class="post-metadata">

**Author:** ![mistyn8](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mistyn8/32/671_2.png) [@mistyn8](https://forum.umbraco.com/u/mistyn8)\
**Post date:** [October 22, 2025, 2:35pm UTC](https://forum.umbraco.com/t/tiptap-is-it-possible-to-not-have-an-empty-p-tag-at-end-of-content/6414/7 "2025-10-22T14:35:33Z")

</div>

So to remove the empty `<p/>` you have to sacrifice the ux of a WYSIWYG editor.. 🤣

Would it be better to do upstream in the prop editor convertor? Just thinking about those editors who insist on adding multiple `<p/>` for spacing purposes 🙂

---

<div class="post-metadata">

**Author:** ![warren](https://forum.umbraco.com/user_avatar/forum.umbraco.com/warren/32/78_2.png) [@warren](https://forum.umbraco.com/u/warren)\
**Post date:** [October 22, 2025, 2:56pm UTC](https://forum.umbraco.com/t/tiptap-is-it-possible-to-not-have-an-empty-p-tag-at-end-of-content/6414/8 "2025-10-22T14:56:50Z")

</div>

For us and our content editors, I think for us removing/disabling this option is the best for us and I would rather not do anything in a PropertyValueConvertor so the markup they put in, is the markup they get.

So there is no magic voodoo for them.

But perhaps for your editors and team, then this may be the route to go.  
Different strokes for different folks and all that 🙂

---

<div class="post-metadata">

**Author:** ![mikeroyle](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mikeroyle/32/581_2.png) [@mikeroyle](https://forum.umbraco.com/u/mikeroyle)\
**Post date:** [October 28, 2025, 9:05am UTC](https://forum.umbraco.com/t/tiptap-is-it-possible-to-not-have-an-empty-p-tag-at-end-of-content/6414/9 "2025-10-28T09:05:41Z")

</div>

A bit of a hacky approach, but I used css to hide empty p tags:

```auto
p:empty {
  display: none;
}

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.umbraco.com/uploads/default/original/1X/624adeddd330a3d0268a184db47946ca7e82c676.png) [@system](https://forum.umbraco.com/u/system)\
**Post date:** [November 27, 2025, 9:05am UTC](https://forum.umbraco.com/t/tiptap-is-it-possible-to-not-have-an-empty-p-tag-at-end-of-content/6414/10 "2025-11-27T09:05:42Z")

</div>

Closed on November 27, 2025, 9:05am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
