PHP code example of leo-yi / wang-editor
1. Go to this page and download the library: Download leo-yi/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/ */
leo-yi / wang-editor example snippets
'extensions' => [
'wang-editor' => [
// 如果要关掉这个扩展,设置为false
'enable' => true,
// 编辑器的配置
'config' => [
]
]
]
$form->editor('content');
bash
// 注意:升级后需要重新发布静态资源
php artisan vendor:publish --force --tag=laravel-admin-wangEditor
bash
php artisan vendor:publish --tag=laravel-admin-wangEditor