Skip to content

Repository files navigation

Integrate EditorJS into your EasyAdmin application

Latest VersionSoftware LicenseBuild StatusCode Coverage

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.yamlsetono_easyadmin_editorjs:
resource: "@SetonoEasyadminEditorjsBundle/Resources/config/routes.yaml"

Usage

When configuring your fields in your crud controller, add an EditorJSField like this:

publicfunctionconfigureFields(string$pageName): iterable
{
// ...yield EditorJSField::new('content')
->addHeaderTool(2)
->addListTool()
->addQuoteTool()
;
// ...
}

About

Integrate EditorJS into your EasyAdmin application

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages