mkui / kindeditor
kindeditor编辑器
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-07-05 21:34:05 UTC
README
KindEditor Widget for Yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist mkui/yii2-kindeditor "*"
or add
"mkui/yii2-kindeditor": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \mkui\kindeditor\KindEditorWidget::widget([ 'name' => 'content', 'options' => [], // html attributes 'clientOptions' => [ 'width' => '680px', 'height' => '350px', 'themeType' => 'default', // optional: default, simple, qq 'langType' => 'zh_CN', // optional: ar, en, ko, zh_CN, zh_TW ... ], ]); ?>
or use with a model:
<?= \mkui\kindeditor\KindEditorWidget::widget([ 'model' => $model, 'attribute' => 'content', 'options' => [], // html attributes 'clientOptions' => [ 'width' => '680px', 'height' => '350px', 'themeType' => 'default', // optional: default, simple, qq 'langType' => 'zh_CN', // optional: ar, en, ko, zh_CN, zh_TW ... ], ]); ?>
For full details on usage, see the documentation.