© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
16 replies
Darnes

v4 RichEditor h1,h2,... not work when rendering

v4 RichEditor h1,h2,h3 not work when rendering , it show all as one size
RichContentRenderer::make($record->body)
RichContentRenderer::make($record->body)
Solution
in an info list you can do this:

TextEntry::make('body')
  ->html()
  ->extraAttributes(['class' => 'fi-prose fi-prose-invert'])
  ->state(fn ($record): string => RichContentRenderer::make($record->body)->toHtml()),
TextEntry::make('body')
  ->html()
  ->extraAttributes(['class' => 'fi-prose fi-prose-invert'])
  ->state(fn ($record): string => RichContentRenderer::make($record->body)->toHtml()),


outside of filament you will need to either use tailwind's typography plugin and wrap the output in a
prose
prose
class or provide you own html styling.

So, it really comes down to what you want the rendered content to look like. You will often need a separate styling for the html than what is used in the editor, since the editor doesn't match branding specific styles and some elements have to look different in the editor vs when they are rendered.
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

RichEditor in v4 not working!
FilamentFFilament / ❓┊help
6mo ago
richeditor is not rendering html
FilamentFFilament / ❓┊help
2y ago
v4 testing RichEditor inside form
FilamentFFilament / ❓┊help
7mo ago
Richeditor v4, set default height
FilamentFFilament / ❓┊help
8mo ago