FilamentF
Filament2y ago
4 replies
Rolland

How to properly Render Rich Text content on the blade file?

Filament

Forms\Components\RichEditor::make('body')
                    ->required()


on the frontend it did not display the numbering.

<div>
    @if (isset($manual))
        <section>
            <pre>{!! $manual->body !!}</pre>
        </section>
    @else
        <span>It's either your data not available or you code is not working :D</span>
    @endif
</div>
image.png
image.png
Solution
If you're using TailwindCSS, have you tried to add .prose ?
Check here: https://github.com/tailwindlabs/tailwindcss-typography
GitHub
Beautiful typographic defaults for HTML you don't control. - tailwindlabs/tailwindcss-typography
GitHub - tailwindlabs/tailwindcss-typography: Beautiful typographic...
Was this page helpful?