雪软 / oatinymce
将 tinymce 集成到 laravel-admin
0.01
2023-10-03 12:21 UTC
Requires
- php: >=8.0.0
- snowsoft/open-admin: >=v0.01
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-09-03 14:31:03 UTC
README
这是一个 laravel-admin
扩展,用于将 Tinymce
集成到 laravel-admin
表单中。
安装
composer require snowsoft/oatinymce
然后
php artisan vendor:publish --tag=laravel-admin-oatinymce
配置
在 config/admin.php
文件的 extensions
部分,添加属于此扩展的一些配置。
'extensions' => [ 'tinymce' => [ //Set to false if you want to disable this extension 'enable' => true, // Editor configuration 'config' => [ ] ] ]
'config' => [ 'lang' => 'tr-TR', 'height' => 500, ]
用法
在表单中使用它
$form->tinymce('content'); // Set config $form->tinymce('content')->options(['lang' => 'tr', 'height' => 500]);
许可
在 MIT 许可证 (MIT) 下许可。