定制 jxlwqq/simditor 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jxlwqq/simditor

最新稳定版本:1.0.4

Composer 安装命令:

composer require jxlwqq/simditor

包简介

Simditor for Laravel-admin

README 文档

README

This is a laravel-admin extension that integrates Simditor into the laravel-admin form.

Screenshot

simditor

Installation

composer require jxlwqq/simditor

php artisan vendor:publish --tag=laravel-admin-simditor

Configuration

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

'extensions' => [
    'simditor' => [
        // Set to false if you want to disable this extension
        'enable' => true,
        // Editor configuration
        'config' => [
            'upload' => [
                'url' => '/admin/api/upload', # example api route: admin/api/upload
                'fileKey' => 'upload_file',
                'connectionCount' => 3,
                'leaveConfirm' => 'Uploading is in progress, are you sure to leave this page?'
            ],
            'tabIndent' => true,
            'toolbar' => ['title', 'bold', 'italic', 'underline', 'strikethrough', 'fontScale', 'color', '|', 'ol', 'ul', 'blockquote', 'code', 'table', '|', 'link', 'image', 'hr', '|', 'indent', 'outdent', 'alignment'],
            'toolbarFloat' => true,
            'toolbarFloatOffset' => 0,
            'toolbarHidden' => false,
            'pasteImage' => true,
            'cleanPaste' => false,
        ]
    ]
]

The configuration of the editor can be found in Simditor Documentation.

Usage

Use it in the form form:

$form->simditor('content');

More resources

Awesome Laravel-admin

License

Licensed under The MIT License (MIT).

统计信息

  • 总下载量: 28.81k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 16
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 16
  • Watchers: 0
  • Forks: 6
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-22