laravel-admin-ext / ckeditor
将 CKEDITOR 集成到 laravel-admin
v1.0.1
2018-11-03 06:08 UTC
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-08-28 14:42:45 UTC
README
这是一个将 CKEDITOR
集成到 laravel-admin
表单的 laravel-admin
扩展。
截图
安装
composer require laravel-admin-ext/ckeditor
然后
php artisan vendor:publish --tag=laravel-admin-ckeditor
配置
在 config/admin.php
文件的 extensions
部分中,添加属于此扩展的一些配置。
'extensions' => [ 'ckeditor' => [ //Set to false if you want to disable this extension 'enable' => true, // Editor configuration 'config' => [ ] ] ]
编辑器的配置可以在 CKEditor 文档 中找到,例如配置语言和高度。
'config' => [ 'lang' => 'zh-CN', 'height' => 500, ]
用法
在表单中使用它
$form->ckeditor('content'); // Set config $form->ckeditor('content')->options(['lang' => 'fr', 'height' => 500]);
捐赠
通过捐赠一小笔钱来帮助项目持续发展。先谢谢您。
许可协议
在MIT 许可协议 (MIT)下授权。