attuladzan/gravity-editor-bundle
Symfony integration for [@gravity-ui/markdown-editor](https://github.com/gravity-ui/markdown-editor).
MarkdownEditorType form typegravity_markdown_editor() functionMarkdownEditorField (when easycorp/easyadmin-bundle is installed)composer require attuladzan/gravity-editor-bundle
Build assets and install:
cd vendor/attuladzan/gravity-editor-bundle && npm install && npm run build
php bin/console assets:install
# config/packages/attuladzan_markdown_editor.yaml
attuladzan_markdown_editor:
editor:
allow_html: false
sticky_toolbar: true
autofocus: false
lang: en
use Attuladzan\MarkdownEditorBundle\Form\MarkdownEditorType;
$builder->add('content', MarkdownEditorType::class);
{{ gravity_markdown_editor({ name: 'content', value: content }) }}
use Attuladzan\MarkdownEditorBundle\EasyAdmin\Field\MarkdownEditorField;
yield MarkdownEditorField::new('content');
Requires: composer require easycorp/easyadmin-bundle and optionally twig/extra-bundle for markdown preview in index/detail.
How can I help you explore Laravel packages today?