PHP code example of laravel-admin-ext / wang-editor
1. Go to this page and download the library: Download laravel-admin-ext/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/ */
laravel-admin-ext / wang-editor example snippets
'extensions' => [
'wang-editor' => [
// 如果要关掉这个扩展,设置为false
'enable' => true,
// 编辑器的配置
'config' => [
]
]
]
'config' => [
// `/upload`接口用来上传文件,上传逻辑要自己实现,可参考下面的`上传图片`
'uploadImgServer' => '/upload'
]
$form->editor('content');
bash
php artisan vendor:publish --tag=laravel-admin-wangEditor