2017 © Pedro Peláez
 

project kinkeditor

KindEditor for Yii2

image

specialnote/kinkeditor

KindEditor for Yii2

  • Tuesday, May 17, 2016
  • by specialnote
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

KindEditor for Yii2

1 下载, (*1)

1.1 修改项目的composer.json 在 repositories 属性中添加,如下代码,没有repositories属性,则补充添加, (*2)

```
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/specialnote/kindeditor.git"
        }
    ],
```

在 require 属性中添加如下代码, (*3)

```
 "specialnote/kinkeditor":"dev-master"
```

1.2 使用composer更新依赖, (*4)

2 使用 2.1 在视图文件中, (*5)

<?= \KindEditor\Widgets\KindEditor::widget([ 'id' => 'content',//文本域ID 'name' => 'content',//文本域名称 'uploadPath' => \yii\helpers\Url::to(['/dir/test/upload']),//图片上传地址 ])?> 2.2 在控制器中, (*6)

php public function actions(){ return [ 'upload'=>[ 'class' => '\KindEditor\Models\KindEditor', 'config' => [ 'save_path' => \Yii::$app->basePath.'/web/upload/', 'php_url' => '/upload/',//图片访问地址前部分,url = php_url.$file_name.'.'.$ext ] ] ]; }, (*7)

The Versions

17/05 2016

dev-master

9999999-dev https://github.com/specialnote/kindeditor

KindEditor for Yii2

  Sources   Download

proprietary

The Requires

  • php >=5.5.0

 

yii2 kindeditor