# How do I stop TipTap adding p tags to my li items?

**URL:** <https://forum.umbraco.com/t/how-do-i-stop-tiptap-adding-p-tags-to-my-li-items/6270>\
**Category:** Questions\
**Tags:** v16, tip-tap\
**Created:** [October 9, 2025, 5:10pm UTC](https://forum.umbraco.com/t/how-do-i-stop-tiptap-adding-p-tags-to-my-li-items/6270 "2025-10-09T17:10:17Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![markusjoha](https://forum.umbraco.com/user_avatar/forum.umbraco.com/markusjoha/32/141_2.png) [@markusjoha](https://forum.umbraco.com/u/markusjoha)\
**Post date:** [November 22, 2025, 1:02pm UTC](https://forum.umbraco.com/t/how-do-i-stop-tiptap-adding-p-tags-to-my-li-items/6270/10 "2025-11-22T13:02:48Z")

</div>

I did some research around this and came to the following conclusion.

The default implementation of UL/OL in CodeMirror (which Tiptap uses under the hood) forces the use of a `<p>` element. There’s not simple configuration to disable this.

There are a couple of options

1. **Just accept it**  
This would save you a lot of time 🙂

2. **Hack the “Ordered List” plugin for Tiptap.**  
This would require custom JavaScript to remove the built in Tiptap plugin for “List” and replace it with a custom one. [This thread](https://github.com/ueberdosis/tiptap/issues/118) has some examples. However, the hack disables the possibility to create nested UL/OL lists in the editor which is not great. I did try this but it just felt wrong.

3. **Roll your own**  
It would probably be technically possible to re-implement the “List” plugin for Tiptap (and CodeMirror) and replace the backoffice plugin that so that your custom implementation is used. CodeMirror feels complicated and I did not have days to invest in this so I did not go down this path.

**What did I do?**  
I spent around 4 hours trying to get around it but ended up with “option” number 1 🙂

If anyone ever finds a solution that actually works with nested ULs I would be very interested to know more.

🚀

---

_[View the full topic](https://forum.umbraco.com/t/how-do-i-stop-tiptap-adding-p-tags-to-my-li-items/6270)._
