composer require ezadev/xeditor
Then
php artisan vendor:publish --tag=ezadev-xeditor
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,
]
]
]
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/