Normal view

There are new articles available, click to refresh the page.
Before yesterdaysocial

View TextEditorField as html in detail modal in easyadmin

I use EasyAdmin to manage the back office of my site created with Symfony 5.

One of my entities has a TextEditorField type field that I use with CKEditorType for forms. In the forms no problem I can do my formatting normally, however in the display board, the "View content" modal displays the raw text and not converted to HTML.

I would like to keep the modal system to see more, is it possible to see the HTML text in this modal? Here is the field declared in my crud

        `TextEditorField::new('contenu', 'Descriptif')
            ->setFormType(CKEditorType::class)->onlyOnForms(),
        TextEditorField::new('contenu', 'Descriptif')->hideOnForm(),`

see the table see the modal

Thank you for your help

I tried to use the TextareaField type because it can display as html but my content is too long and I need to see it in a pop-up and not in the table.

❌
❌