定制 alpha1130/open-admin-tinymce 二次开发

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

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

alpha1130/open-admin-tinymce

最新稳定版本:0.0.5

Composer 安装命令:

composer require alpha1130/open-admin-tinymce

包简介

tinymce extension for open-admin

README 文档

README

Tinymce Editor Extension for open-admin

Installation

composer require alpha1130/open-admin-tinymce
php .\artisan vendor:publish --tag=open-admin-tinymce

Usage

$tinymceConfig = [
    'height' => 500,
    'language_url' => '',
    'language' => '',
    'license_key' => 'gpl',
    'plugins' => 'image link table fullscreen',
    'menubar' => 'edit view insert format tools table',
    'toolbar' => "undo redo | accordion accordionremove | blocks fontfamily fontsize | bold italic underline strikethrough | align numlist bullist | link image | table | lineheight outdent indent| forecolor backcolor removeformat | code fullscreen preview | pagebreak anchor",
];

$cosConfig = [
    'secretId' => env('QCLOUD_COS_SECRET_ID', ''),
    'secretKey' => env('QCLOUD_COS_SECRET_KEY', ''),
    'bucket' => env('QCLOUD_COS_BUCKET', ''),
    'region' => env('QCLOUD_COS_REGION', 'ap-guangzhou'),
    'durationSeconds' => 6000,
    'publishDomain' => '',
    'allowPrefix' => ['*'],
    'keyPrefix' => '',
];

$form->tinymce('field-name')
    ->addVariables([
        'tinymceConfig' => $tinymceConfig,
        'cosConfig' => $cosConfig,
    ]);

License

Licensed under The MIT License (MIT).

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-12