PHP code example of chenjiabin / laravel-admin-ext-wang-editor

1. Go to this page and download the library: Download chenjiabin/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/ */

    

chenjiabin / laravel-admin-ext-wang-editor example snippets



    'extensions' => [

        'wang-editor' => [
        
            // 如果要关掉这个扩展,设置为false
            'enable' => true,
            
            // 编辑器的配置
            'config' => [
                
            ]
        ]
    ]


    'config' => [
        'uploadImgServer' => '/upload'
    ]

$form->editor('content');
bash
php artisan vendor:publish --tag=laravel-admin-wangEditor