How I display bullets and number from RichEditor

Please tell how to show bullets and number in the description filed.
3 Replies
Sourabh
Sourabh5mo ago
Anyone can help me for this ?
LeandroFerreira
LeandroFerreira5mo ago
if you want to render a html in the description, you could create a custom view
->description(fn (Model $record) =>
view('custom-description', ['description' => $record->description]))
->description(fn (Model $record) =>
view('custom-description', ['description' => $record->description]))
<!-- resources/views/custom-description.blade.php -->
<div>
{!! $description !!}
</div>
<!-- resources/views/custom-description.blade.php -->
<div>
{!! $description !!}
</div>
Sourabh
Sourabh5mo ago
@Leandro Ferreira Thank you for your response . I took the reference from the filament demo and same thing i implement in my project . And for html rendering I have used ->html() but even that it's not showing bullet and number against the description field . For display in the cart . I have used the following code . Tables\Columns\TextColumn::make('description')->html() ->wrap(), And while storing the description i have used the code like this ->schema([ Forms\Components\RichEditor::make('description') ->disableToolbarButtons([ 'attachFiles', 'link', ]) ->required(), ]),
Want results from more Discord servers?
Add your server
More Posts