PHP code example of dungang / yii2-ueditor

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

    

dungang / yii2-ueditor example snippets



<?= $form->field($model, 'intro')->widget(\dungang\ueditor\widgets\Editor::className(),[
    //(可选)增加编辑器按钮,1维数组(之支持一行显示,没有必要多行显示),官方是二维数组(多行工具)
    'toolBars'=>[
        'forecolor', 'backcolor', '|' ,'insertimage', 
    ]
])