setono / easyadmin-editorjs-bundle
Use EditorJS in your EasyAdmin project
Installs: 3 149
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 1
Open Issues: 2
Type:symfony-bundle
Requires
- php: >=8.1
- easycorp/easyadmin-bundle: ^4.0
- setono/editorjs-bundle: ^1.0
- setono/editorjs-php: ^1.0
- setono/html-element: ^1.0@alpha
- symfony/config: ^6.0
- symfony/dependency-injection: ^6.0
- symfony/filesystem: ^6.0
- symfony/form: ^6.0
- symfony/http-foundation: ^6.0
- symfony/http-kernel: ^6.0
- symfony/mime: ^6.0
- symfony/routing: ^6.0
- symfony/string: ^6.0
- twig/twig: ^3.7
- webmozart/assert: ^1.11
Requires (Dev)
- matthiasnoback/symfony-dependency-injection-test: ^4.3.1
- nyholm/symfony-bundle-test: ^2.0
- phpspec/prophecy-phpunit: ^2.0.2
- phpunit/phpunit: ^9.6.10
- psalm/plugin-phpunit: ^0.18.4
- psalm/plugin-symfony: ^5.0.3
- setono/code-quality-pack: ^2.4
This package is auto-updated.
Last update: 2024-12-08 10:51:31 UTC
README
Installation
To install this bundle, simply run:
composer require setono/easyadmin-editorjs-bundle
Add route configuration
Add a route import inside config/routes
:
# config/routes/setono_easyadmin_editorjs.yaml setono_easyadmin_editorjs: resource: "@SetonoEasyadminEditorjsBundle/Resources/config/routes.yaml"
Usage
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() ; // ... }