Integrate Quill into open-admin

v1.0.1 2025-06-01 09:04 UTC

This package is auto-updated.

Last update: 2025-06-01 09:04:40 UTC


README

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

Screenshot

field-quill

Installation

composer require open-admin-ext/quill

Then

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

Configuration

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

    'extensions' => [

        'quill' => [

            //Set to false if you want to disable this extension
            'enable' => true,

            // Editor configuration
            'config' => [

            ]
        ]
    ]

The configuration of the editor can be found in Quill Documentation, such as configuration language and height.

    'config' => [
        'placeholder'      => 'Compose an epic...',
    ]

Usage

Use it in the form:

$form->quill('content','field label');

// Set config
$form->quill('content')->options(['placeholder' => 'Write some text...', ...]);

// Set heights
$form->quill('content')->minHeight('200px')->maxHeight('600px');

// Set toolbar
$form->quill('content')->toolbar([['bold', 'italic', 'underline', 'strike']['clean']]);

Problems?

Please not that Quill does not work nicely with the Ckeditor installed and enabled.

If Quill is not showing up and tells you that it's not found run the lines below to clear the compiled services and packages.

php artisan optimize:clear

License

Licensed under The MIT License (MIT).