Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laravel-admin-extensions/quill
Quill Editor extension for laravel-admin
https://github.com/laravel-admin-extensions/quill
Last synced: 6 days ago
JSON representation
Quill Editor extension for laravel-admin
- Host: GitHub
- URL: https://github.com/laravel-admin-extensions/quill
- Owner: laravel-admin-extensions
- License: mit
- Created: 2018-11-21T05:23:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-15T10:50:15.000Z (almost 3 years ago)
- Last Synced: 2024-09-28T21:45:24.354Z (about 1 month ago)
- Language: CSS
- Homepage:
- Size: 169 KB
- Stars: 23
- Watchers: 3
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - Quill - 为兼容性和可扩展性而构建的现代 WYSIWYG 编辑器 (扩展包 / 字段类扩展包)
README
# Quill Editor extension for laravel-admin
This is a `laravel-admin` extension that integrates [Quill](https://github.com/quilljs/quill) into the `laravel-admin` form.
## Screenshot## Installation
```bash
composer require jxlwqq/quillphp 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.
```php
'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](https://quilljs.com/docs/quickstart/).
* [How to insert images by uploading to the server instead of Base64 encoding the images?](https://github.com/quilljs/quill/issues/1089)
## Usage
Use it in the form form:
```php
$form->quill('content');
```## More resources
[Awesome Laravel-admin](https://github.com/jxlwqq/awesome-laravel-admin)
License
------------
Licensed under [The MIT License (MIT)](LICENSE).