ezadev/xeditor

Ezadev Admin 的文本编辑器

0.0.3 2020-11-06 09:14 UTC

This package is auto-updated.

Last update: 2024-09-06 17:54:06 UTC


README

安装

composer require ezadev/xeditor

然后

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

配置

config/admin.php 文件的 extensions 部分添加属于此扩展的配置。

    'extensions' => [
        'xeditor' => [
            'enable' => true,
            'config' => [
                'lang'   => 'id-ID',
                'height' => 250,
            ]
        ]
    ]

使用方法

以以下形式使用

$form->xeditor('content')->set_mode('full|lite');

用于自定义工具栏

$form->xeditor('content')->set_mode('custom')
    ->set_toolbar(['bold','underline']);

有关自定义工具栏的更多信息,请参阅 https://summernote.org/deep-dive/