vitalik74/yii2-bootstrap-wysihtml5-widget
Composer 安装命令:
composer require vitalik74/yii2-bootstrap-wysihtml5-widget
包简介
The simple WYSIWYG editor widget based on bootstrap3-wysihtml5 for Yii2 framework.
关键字:
README 文档
README
This Yii2 widget provide simple wysiwyg editor - bootstrap3-wysihtml5.
For bootstrap3-wysihtml5 see more https://github.com/bootstrap-wysiwyg/bootstrap3-wysiwyg.
REQUIREMENTS
The minimum requirement by this application template that your Web server supports PHP 5.4.0.
INSTALLATION
Install via Composer
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this widget. Put in your composer.json in require case:
"vitalik74/yii2-bootstrap-wysihtml5-widget": "*"
And run command "composer update"
USAGE
###Base usage like that:###
echo vitalik74\wysihtml5\Widget::widget([
'options' => [
'id' => 'test',
'style' => 'width: 810px; height: 200px',
'placeholder' => "Placeholder text ..."
],
]);
###In ActiveForm use like that:###
<?= $form->field($model, 'body')->widget(\vitalik74\wysihtml5\Widget::className(), ['options' => [
'id' => 'test',
'style' => 'width: 810px; height: 200px',
'placeholder' => "Placeholder text ..."
],]) ?>
统计信息
- 总下载量: 6.32k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-24