跳至正文
F·l CODE

F·l CODE

Cease to struggle and you cease to live.

  • PHP
  • Yii2
  • Nginx
  • Python
  • Mysql
  • NoSQL
  • Linux
  • Tools
  • Link
  • Books
  • About
  • 小程序
  • GitHub

标签: ueditor

Yii2 UEditor+七牛云存储

首先下载UEditor扩展。

composer require yidashi/yii2-ueditor

控制器中添加actions

public function actions()
    {
        return [
            'upload' => [
                'class' => 'kucha\ueditor\UEditorAction',
            ],
        ];
    }

在视图中引用UEditor

$form->field($model,'content')->widget('kucha\ueditor\UEditor',[]);

继续阅读Yii2 UEditor+七牛云存储

发布于 2017年5月31日2017年5月31日分类 PHP、Yii2标签 ueditor、yii2、七牛

鲁ICP备15041704号-1 Copyright © F·L CODE 2016-2020