open-admin-ext / quill
Integrate Quill into open-admin
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 1
pkg:composer/open-admin-ext/quill
Requires
- php: >=7.0.0
- laravel/framework: >=7.0
- open-admin-org/open-admin: ~1.0
Requires (Dev)
- laravel/laravel: ~7.0
- phpunit/phpunit: ~6.0
README
This is a open-admin extension that integrates Quill into the open-admin form.
Screenshot
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).