made content TextEditorField
This commit is contained in:
parent
0cacf7144d
commit
db245e6d35
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue