anrhkk/kindeditor
Composer 安装命令:
composer require anrhkk/kindeditor
包简介
yii2-kindeditor编辑器
关键字:
README 文档
README
KindEditor Widget for Yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist anrhkk/yii2-kindeditor "*"
or add
"anrhkk/yii2-kindeditor": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \anrhkk\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:
<?= \anrhkk\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
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-03