creative-web-solution/cws-quilljs-bundle

将 Quill 富文本编辑器添加到 symfony。

dev-main 2024-07-26 14:29 UTC

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']

完成。