f1yx / laravel-admin-ckeditor4
将 CKEDITOR 集成到 laravel-admin
v1.0.0
2024-04-11 06:07 UTC
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is not auto-updated.
Last update: 2024-09-27 06:25:49 UTC
README
这是一个将 CKEDITOR
集成到 laravel-admin
表单的 laravel-admin
扩展。
基于方版本laravel-admin-ext/ckeditor,更新ckeditor版本到v4.24
截图
安装
composer require f1yx/laravel-admin-ckeditor4
然后
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) 许可。