brussens/yii2-trumbowyg
最新稳定版本:1.0.0
Composer 安装命令:
composer require brussens/yii2-trumbowyg
包简介
Trumbowyg extension for YiiFramework 2.x.x
README 文档
README
Install
Either run
php composer.phar require --prefer-dist brussens/yii2-trumbowyg "*"
or add
"brussens/yii2-trumbowyg": "*"
to the require section of your composer.json file.
Basic usage:
use brussens\yii2\extensions\trumbowyg\TrumbowygWidget; echo $form->field($form, 'content')->widget(TrumbowygWidget::className());
Advanced usage
use brussens\yii2\extensions\trumbowyg\TrumbowygWidget; echo $form->field($form, 'content')->widget(TrumbowygWidget::className(), [ 'clientOptions' => [ 'btns' => [ ['viewHTML'], ['undo', 'redo'], ['table'], ['formatting'], ['strong', 'em', 'del'], ['link'], ['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'], ['unorderedList', 'orderedList'], ['removeformat'], ['fullscreen'], ['upload'], ] ], 'plugins' => [ TrumbowygWidget::PLUGIN_UPLOAD, TrumbowygWidget::PLUGIN_TABLE, TrumbowygWidget::PLUGIN_HISTORY ] ]);
统计信息
- 总下载量: 11.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-25