creative-web-solution / cws-quilljs-bundle
将 Quill 富文本编辑器添加到 symfony。
dev-main
2024-07-26 14:29 UTC
Requires
- php: >=8.3
- symfony/asset: ^6.4
- symfony/config: ^6.4
- symfony/dependency-injection: ^6.4
- symfony/form: ^6.4
- symfony/http-kernel: ^6.4
- symfony/twig-bundle: ^6.4
- symfony/yaml: ^6.4
Requires (Dev)
- phpunit/phpunit: ^9.1
- symfony/phpunit-bridge: ^6.4
This package is auto-updated.
Last update: 2024-09-26 14:52:47 UTC
README
配置
composer require creative-webso
在 bundles.php 中添加此行
Cws\Bundle\QuillJsBundle\CwsQuillJsBundle::class => ['all' => true],
在 config/packages 中创建 cws_quill_js.yaml
cws_quill_js:
enabled: true
toolbar:
- ['bold', 'italic', 'underline', 'strike']
- [{'list': 'ordered'}, {'list': 'bullet'}]
- ['link']
- ['clean']
完成。