yii2-ueditor百度编辑器

2022-03-25 20:46:21 浏览数 (1)

安装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()) ?>

解决。奥利给

0 人点赞