made content TextEditorField

This commit is contained in:
tracer 2022-11-03 18:54:31 +01:00
parent 0cacf7144d
commit db245e6d35
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField;
use EasyCorp\Bundle\EasyAdminBundle\Field\CodeEditorField; use EasyCorp\Bundle\EasyAdminBundle\Field\CodeEditorField;
use EasyCorp\Bundle\EasyAdminBundle\Field\IdField; use EasyCorp\Bundle\EasyAdminBundle\Field\IdField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField; use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextEditorField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
class PagesCrudController extends AbstractCrudController class PagesCrudController extends AbstractCrudController
@ -24,7 +25,7 @@ class PagesCrudController extends AbstractCrudController
yield TextField::new(propertyName: 'name'); yield TextField::new(propertyName: 'name');
yield AssociationField::new(propertyName: 'owner'); yield AssociationField::new(propertyName: 'owner');
// yield CodeEditorField::new(propertyName: 'content') // yield CodeEditorField::new(propertyName: 'content')
yield TextareaField::new(propertyName: 'content') yield TextEditorField::new(propertyName: 'content')
->onlyOnForms(); ->onlyOnForms();
} }
} }