From db245e6d35ce635a9c5f533ed5d9cb22b446da73 Mon Sep 17 00:00:00 2001 From: tracer Date: Thu, 3 Nov 2022 18:54:31 +0100 Subject: [PATCH] made content TextEditorField --- src/Controller/Admin/PagesCrudController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controller/Admin/PagesCrudController.php b/src/Controller/Admin/PagesCrudController.php index 36a8d1d..8aad8fb 100644 --- a/src/Controller/Admin/PagesCrudController.php +++ b/src/Controller/Admin/PagesCrudController.php @@ -8,6 +8,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField; use EasyCorp\Bundle\EasyAdminBundle\Field\CodeEditorField; use EasyCorp\Bundle\EasyAdminBundle\Field\IdField; use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField; +use EasyCorp\Bundle\EasyAdminBundle\Field\TextEditorField; use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; class PagesCrudController extends AbstractCrudController @@ -24,7 +25,7 @@ class PagesCrudController extends AbstractCrudController yield TextField::new(propertyName: 'name'); yield AssociationField::new(propertyName: 'owner'); // yield CodeEditorField::new(propertyName: 'content') - yield TextareaField::new(propertyName: 'content') + yield TextEditorField::new(propertyName: 'content') ->onlyOnForms(); } }