ezadev/xeditor

Text Editor untuk Ezadev Admin

0.0.3 2020-11-06 09:14 UTC

This package is auto-updated.

Last update: 2024-04-06 17:02:57 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/