kotchuprik/yii2-medium-widget
Composer 安装命令:
composer require kotchuprik/yii2-medium-widget
包简介
Medium editor widget for Yii2
README 文档
README
This widget is the wrapper for the MediumEditor.
Usage
Widget
echo \kotchuprik\medium\Widget::widget([ 'model' => $model, 'attribute' => 'attribute', ]);
Widget with settings
echo \kotchuprik\medium\Widget::widget([ 'model' => $model, 'attribute' => 'attribute', 'theme' => 'bootstrap', 'settings' => [ 'buttons' => ['bold', 'italic', 'quote'], ], ]);
ActiveForm widget
echo $form->field($model, 'attribute')->widget(\kotchuprik\medium\Widget::className());
ActiveForm widget with settings
echo $form->field($model, 'attribute')->widget(\kotchuprik\medium\Widget::className(), [ 'theme' => 'bootstrap', 'settings' => [ 'buttons' => ['bold', 'italic', 'quote'], ], ]);
统计信息
- 总下载量: 433
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-08-06