jxlwqq/quill

quill editor for laravel-admin

Installs: 19 694

Dependents: 0

Suggesters: 0

Security: 0

Stars: 22

Watchers: 3

Forks: 4

Language:CSS

1.0.4 2021-12-15 10:49 UTC

This package is auto-updated.

Last update: 2024-04-14 20:57:53 UTC


README

This is a laravel-admin extension that integrates Quill into the laravel-admin form.

Screenshot

quill

Installation

composer require jxlwqq/quill

php artisan vendor:publish --tag=laravel-admin-quill

Configuration

In the extensions section of the config/admin.php file, add some configuration that belongs to this extension.

'extensions' => [
    'quill' => [
        // If the value is set to false, this extension will be disabled
        'enable' => true,
        'config' => [
            'modules' => [
                'syntax' => true,
                'toolbar' =>
                    [
                        ['size' => []],
                        ['header' => []],
                        'bold',
                        'italic',
                        'underline',
                        'strike',
                        ['script' => 'super'],
                        ['script' => 'sub'],
                        ['color' => []],
                        ['background' => []],
                        'blockquote',
                        'code-block',
                        ['list' => 'ordered'],
                        ['list' => 'bullet'],
                        ['indent' => '-1'],
                        ['indent' => '+1'],
                        'direction',
                        ['align' => []],
                        'link',
                        'image',
                        'video',
                        'formula',
                        'clean'
                    ],
                    "htmlEditButton" => ["syntax" => true, "debug" => true]
            ],
            'theme' => 'snow',
            'height' => '200px',
        ]
    ]
]

The configuration of the editor can be found in Quill Documentation.

Usage

Use it in the form form:

$form->quill('content');

More resources

Awesome Laravel-admin

License

Licensed under The MIT License (MIT).