安装yii2-百度编辑器:
composer update yiisoft/yii2-composer --no-plugins
php -r "readfile('https://getcomposer.org/installer');" | php
php composer.phar require --prefer-dist crazydb/yii2-ueditor "*"
'controllerMap'=>[//'upload'=>'backend\components\UploadController','ueditor' => ['class' => 'crazydb\ueditor\UEditorController',]],
<?= $form->field($model, 'content')->widget(\crazydb\ueditor\UEditor::className()) ?>
解决。奥利给