安装yii2-百度编辑器:
代码语言:javascript复制composer update yiisoft/yii2-composer --no-plugins
代码语言:javascript复制php -r "readfile('https://getcomposer.org/installer');" | php
代码语言:javascript复制php composer.phar require --prefer-dist crazydb/yii2-ueditor "*"
代码语言:javascript复制'controllerMap'=>[
//'upload'=>'backendcomponentsUploadController',
'ueditor' => [
'class' => 'crazydbueditorUEditorController',
]
],
代码语言:javascript复制<?= $form->field($model, 'content')->widget(crazydbueditorUEditor::className()) ?>
解决。奥利给