Skip to content

khairu-aqsara/ezadev-xeditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ezadev Summernote Text Editor

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/