dev-master
9999999-devkindeditor编辑器
MIT
The Requires
by Rootkit
yii2 kindeditor
Wallogit.com
2017 © Pedro Peláez
kindeditor编辑器
KindEditor Widget for Yii2, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist mkui/yii2-kindeditor "*"
or add, (*4)
"mkui/yii2-kindeditor": "*"
to the require section of your composer.json file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
<?= \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:, (*7)
<?= \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., (*8)
kindeditor编辑器
MIT
yii2 kindeditor