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

Filament
Forms\Components\RichEditor::make('body')
->required()
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>
<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>
No description
No description
Solution:
If you're using TailwindCSS, have you tried to add .prose ? Check here: https://github.com/tailwindlabs/tailwindcss-typography...
GitHub
GitHub - tailwindlabs/tailwindcss-typography: Beautiful typographic...
Beautiful typographic defaults for HTML you don't control. - tailwindlabs/tailwindcss-typography
Jump to solution
2 Replies
Solution
Grégoire
Grégoire8mo ago
If you're using TailwindCSS, have you tried to add .prose ? Check here: https://github.com/tailwindlabs/tailwindcss-typography
GitHub
GitHub - tailwindlabs/tailwindcss-typography: Beautiful typographic...
Beautiful typographic defaults for HTML you don't control. - tailwindlabs/tailwindcss-typography
Rolland
RollandOP8mo ago
You are my live saviour. I thank you for your guidance.
Want results from more Discord servers?
Add your server