ezadev / xeditor
Text Editor untuk Ezadev Admin
0.0.3
2020-11-06 09:14 UTC
Requires
- php: >=7.0.0
- ezadev/admin: >=0.6.0
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2025-03-06 18:50:16 UTC
README
Installation
composer require ezadev/xeditor
Then
php artisan vendor:publish --tag=ezadev-xeditor
Configuration
In the extensions
section of the config/admin.php
file, add some configuration that belongs to this extension.
'extensions' => [ 'xeditor' => [ 'enable' => true, 'config' => [ 'lang' => 'id-ID', 'height' => 250, ] ] ]
Usage
Use it in the form:
$form->xeditor('content')->set_mode('full|lite');
for custom Toolbar:
$form->xeditor('content')->set_mode('custom') ->set_toolbar(['bold','underline']);
for custom toolbar please refer to the https://summernote.org/deep-dive/