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
Tieme4mo ago
How is it stored in the database?
krekas
krekas4mo 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
TranceCode4mo ago
@Answer Overflow @krekas is like a Text
No description
krekas
krekas4mo ago
What? Check not the type what how it is saved. The value
Want results from more Discord servers?
Add your server
More Posts