ezadev/summernote

Summernote extension for ezadev-admin

0.0.1 2021-08-21 06:25 UTC

This package is auto-updated.

Last update: 2024-04-21 12:27:03 UTC


README

This is a ezadev-admin extension that integrates Summernote into the ezadev-admin form.

Installation

composer require ezadev/summernote

Then

php artisan vendor:publish --tag=ezadev-summernote

Configuration

In the extensions section of the config/admin.php file, add some configuration that belongs to this extension.

    'extensions' => [

        'summernote' => [
        
            //Set to false if you want to disable this extension
            'enable' => true,
            
            // Editor configuration
            'config' => [
                
            ]
        ]
    ]

The configuration of the editor can be found in Summernote Documentation, such as configuration language and height.

    'config' => [
        'lang'   => 'en-EN',
        'height' => 500,
    ]

Usage

Use it in the form:

$form->summernote('content');

License

Licensed under The MIT License (MIT).