承接 mr4-lax/tiny-mce 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mr4-lax/tiny-mce

最新稳定版本:0.0.1

Composer 安装命令:

composer require mr4-lax/tiny-mce

包简介

Laravel admin form TinyMCE

README 文档

README

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

Screenshot

Screenshot 2023-07-21 at 10 52 44

Installation

composer require mr4-lax/tiny-mce
php artisan vendor:publish --tag=mr4-lax-tinymce --force

Configuration

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

'extensions' => [
    'mr4lax' => [
        // If the value is set to false, this extension will be disabled
        'enable' => true,
        'tinymce' => [
            'editor' => [
                'plugins' => 'table lists link image media wordcount',
                'toolbar' => 'undo redo | formatselect| bold italic underline strikethrough forecolor backcolor | alignleft aligncenter alignright alignjustify | indent outdent | bullist numlist | code | table | image media link',
            ],
            'editor' => [
                'upload' => 'mr4.lax.tinymce.upload',
                'store' => 'public/mr4lax/tinymce',
            ],
        ],
    ],
],

The configuration of plugins and toolbar of the editor can be found in TinyMCE Document

Usage

Use it in the form:

$form->tinymce('content')
  ->rows(5)
  ->attribute([
      'menubar' => 'true',
      'statusbar' => 'true',
  ]);

License

Licensed under The MIT License (MIT).

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-21