liuhelong / laravel-admin-wang-editor
wangEditor extension for laravel-admin
Installs: 57
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- php: >=7.0.0
- encore/laravel-admin: >=1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2025-03-29 00:48:32 UTC
README
prower by https://github.com/laravel-admin-extensions/wangEditor
截图
安装
composer require liuhelong/laravel-admin-wang-editor
然后
php artisan vendor:publish --tag=laravel-admin-wangEditor
配置
在config/admin.php
文件的extensions
,加上属于这个扩展的一些配置
'extensions' => [ 'wang-editor' => [ // 如果要关掉这个扩展,设置为false 'enable' => true, // 编辑器的配置 'config' => [ //配置图片上传地址,不然会用base64处理图片 'uploadImgServer' => '/admin/uploadImage', 'debug'=>false, //上传的图片大小限制 'uploadImgMaxSize' => 3 * 1024 * 1024, //上传图片的传递数组名 'uploadFileName' => 'image[]', ] ] ]
编辑器的配置可以到wangEditor文档找到
使用
在form表单中使用它:
$form->editor('content')->move('my_images');