© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
5 replies
Lara Zeus

[v4] RichEditor (tiptap) always leave a `<p></p>` behind!

not sure dose this consider a bug? since I dont remember the same behavior on adams tiptap plugin.

test code:
RichEditor::make('details')
  ->live()
  ->belowContent(fn(Get $get)=>$get('details')),
RichEditor::make('details')
  ->live()
  ->belowContent(fn(Get $get)=>$get('details')),


and storing it as html..
when remove all content from the editor still there a
P
P
tag.

if this normal, how we should check if the field has actual content or not.
previously we do:
if(filled($zeusForm->details))
if(filled($zeusForm->details))
but its always filled even if the user didnt write anything!
Solution
I swear I’m handling this some where in my plugin to convert between null and the tag, but can’t find it. 😂

But, yes, it’s expected behavior with Tiptap since it has to have p tag at minimum with prosemirror, otherwise you wouldn’t be able to insert a cursor to start typing.
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Disable auto link detection in RichEditor (V4 / Tiptap)
FilamentFFilament / ❓┊help
7mo ago
Richeditor tiptap allow html attributes
FilamentFFilament / ❓┊help
5mo ago
TipTap RichEditor: trouble with lists
FilamentFFilament / ❓┊help
6mo ago
Install a resize image extension in tiptap richeditor
FilamentFFilament / ❓┊help
6mo ago