To install this bundle, simply run:
composer require setono/easyadmin-editorjs-bundle
Add a route import inside config/routes
:
# config/routes/setono_easyadmin_editorjs.yaml
setono_easyadmin_editorjs:
resource: "@SetonoEasyadminEditorjsBundle/Resources/config/routes.yaml"
When configuring your fields in your crud controller, add an EditorJSField
like this:
public function configureFields(string $pageName): iterable
{
// ...
yield EditorJSField::new('content')
->addHeaderTool(2)
->addListTool()
->addQuoteTool()
;
// ...
}