PHPackages                             pjkui/kindeditor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pjkui/kindeditor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pjkui/kindeditor
================

Yii2 可以使用的KindEditor富文本编辑器。 KindEditor for Yii2

1.0.1(5y ago)274.3k8MITJavaScript

Since Sep 8Pushed 4y ago4 watchersCompare

[ Source](https://github.com/pjkui/kindeditor)[ Packagist](https://packagist.org/packages/pjkui/kindeditor)[ RSS](/packages/pjkui-kindeditor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

KindEditor
==========

[](#kindeditor)

**修复了linux下的一些bug，由于Yii China 无法更新这些信息，抱歉。使用方法务必参考本文，YiiChina上的方法有拼写问题，因为无法修改，所以一定要看这个！！！**\*

中文的使用说明在页面下部

install
=======

[](#install)

Either run

```
$ php composer.phar require pjkui/kindeditor "*"
```

or add

```
"pjkui/kindeditor": "*"
```

to the `require` section of your `composer.json` file.

```
'pjkui\\kindeditor\\'=>array($vendorDir . '/pjkui/kindeditor')
```

Usage example
=============

[](#usage-example)

add an actions() method in controller
-------------------------------------

[](#add-an-actions-method-in-controller)

```
public function actions()
{
    return [
        'Kupload' => [
            'class' => 'pjkui\kindeditor\KindEditorAction',
        ]
    ];
}
```

used in view :
--------------

[](#used-in-view-)

```
echo \pjkui\kindeditor\KindEditor::widget([]);
```

or ：

```
echo $form->field($model,'colum')->widget('pjkui\kindeditor\KindEditor',[]);
```

or ：

```
