PHP code example of chentaohua / wangeditor5

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

    

chentaohua / wangeditor5 example snippets


'extensions' => [

        // document : https://www.wangeditor.com/v5/
        'wangeditor5' => [
            // If the value is set to false, this extension will be disabled
            'enable' => true,
            'height' => '300px',

            'editor_config' => ['placeholder' => '请输入内容 ...'],
            'editor_mode' => 'simple', // or 'default'

            'toolbar_config' => [

            ],
            'toolbar_mode' => 'simple', // or 'default'
        ]
    ],

$form->wangEditor5('content');