display or show image in infolist usin richeditor and view

Hey guys, i have a form with Richeditor like this:
Forms\Components\RichEditor::make('diet')
->label(__('Dieta de alimentos'))
->required(),
Forms\Components\RichEditor::make('aggregates')
->label(__('Agregados de la dieta'))
->required(),
Forms\Components\RichEditor::make('diet')
->label(__('Dieta de alimentos'))
->required(),
Forms\Components\RichEditor::make('aggregates')
->label(__('Agregados de la dieta'))
->required(),
in my inforlist view i have this code:
->schema([
TextEntry::make('diet')
->html()
->label('Descripción de las comidas'),
TextEntry::make('aggregates')
->markdown()
->label('Detalles y agregados'),
])->columns(2),
->schema([
TextEntry::make('diet')
->html()
->label('Descripción de las comidas'),
TextEntry::make('aggregates')
->markdown()
->label('Detalles y agregados'),
])->columns(2),
i try with ->markdown() and ->html() but the image is only text with a href
No description
No description
No description
4 Replies
Tieme
Tieme10mo ago
How is it stored in the database?
krekas
krekas10mo ago
rich text editor doesn't save as markdown which you are doing. displaying as markdown maybe i'm wrong. check how the saved text looks in the db
TranceCode
TranceCodeOP10mo ago
@Answer Overflow @krekas is like a Text
No description
krekas
krekas10mo ago
What? Check not the type what how it is saved. The value
Want results from more Discord servers?
Add your server