© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
3 replies
dominic

TipTap RichEditor: "flatten" or navigate tree for text validation

When implementing a custom validation rule for a RichEditor with a signature like
fn(string $attribute, $value, Closure $fail)
fn(string $attribute, $value, Closure $fail)
, under Filament v3 with the Trix editor, the
$value
$value
contains a string representation of the editor's content; with Filament v4 (TipTap), it's a tree structure with nodes for text, images, paragraphs, and so on.

Is there a way to restore the v3 functionality, where the validation rule can access the entire contents as a string? If not, can anyone point me towards documentation of the tree structure used by TipTap so I can implement logic correctly examine each text node?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

RichEditor - TipTap - Custom Block for embedding HTML
FilamentFFilament / ❓┊help
5mo ago
Richeditor tiptap allow html attributes
FilamentFFilament / ❓┊help
5mo ago
TipTap RichEditor: trouble with lists
FilamentFFilament / ❓┊help
6mo ago
Tiptap editor wont add <br> or indent text
FilamentFFilament / ❓┊help
16mo ago