PHP code example of liuhelong / laravel-admin-wang-editor
1. Go to this page and download the library: Download liuhelong/laravel-admin-wang-editor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
liuhelong / laravel-admin-wang-editor example snippets
'extensions' => [
'wang-editor' => [
// 如果要关掉这个扩展,设置为false
'enable' => true,
// 编辑器的配置
'config' => [
//配置图片上传地址,不然会用base64处理图片
'uploadImgServer' => '/admin/uploadImage',
'debug'=>false,
//上传的图片大小限制
'uploadImgMaxSize' => 3 * 1024 * 1024,
//上传图片的传递数组名
'uploadFileName' => 'image[]',
]
]
]
$form->editor('content')->move('my_images');
bash
php artisan vendor:publish --tag=laravel-admin-wangEditor