amirandev/openadmin-tinymce
最新稳定版本:v1.0.0
Composer 安装命令:
composer require amirandev/openadmin-tinymce
包简介
Integrate TinyMCE editor into Open-Admin
README 文档
README
<<<<<<< HEAD Perfect! Since you’re now using TinyMCE, here’s a fully polished README.md tailored specifically for your TinyMCE Open-Admin package. You can copy-paste it directly:
Integrate TinyMCE into Open-Admin
This is an Open-Admin extension that integrates the TinyMCE WYSIWYG editor into the Open-Admin form system.
Screenshot
Example TinyMCE field in an Open-Admin form
Installation
Install the package via Composer:
composer require amirandev/openadmin-tinymce
Publish the package assets (JS/CSS) so they are accessible by your application:
php artisan vendor:publish --tag=open-admin-tinymce
Configuration
In your config/admin.php file, add the tinymce extension under the extensions section:
'extensions' => [ 'tinymce' => [ // Set to false to disable this extension 'enable' => true, // Editor configuration options 'config' => [ // See TinyMCE docs for available options ], ], ],
Example configuration:
'config' => [ 'height' => 500, 'menubar' => false, 'plugins' => 'link image code table lists', 'toolbar' => 'undo redo | styleselect | bold italic underline | forecolor backcolor | alignleft aligncenter alignright | bullist numlist | table | link image media | code', ]
For more configuration options, see the official TinyMCE Documentation.
Usage
Use the TinyMCE editor in your Open-Admin form like this:
$form->tinymce('content');
Or with custom options:
$form->tinymce('content')->options([ 'height' => 400, 'menubar' => true, 'plugins' => 'link image code table lists', 'toolbar' => 'undo redo | bold italic | alignleft aligncenter alignright | bullist numlist | code', ]);
Troubleshooting
If TinyMCE does not load or you see errors about missing files, try clearing your application cache:
php artisan optimize:clear
License
This package is licensed under the MIT License.
If you want, I can also add a short “Media Manager Integration” section showing how to use your custom file/image buttons inside TinyMCE, so your README fully documents all features.
Do you want me to add that?
openadmin-tinymce
c85364e96523b59ecbbfedb4e45599ba349a91a5
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-22