ofilin/yii2-quill
最新稳定版本:0.3.4
Composer 安装命令:
composer require ofilin/yii2-quill
包简介
Quill Asset & Plugin
README 文档
README
This is fork of https://github.com/bizley/yii2-quill with local library of Quill and without Katex, Highlight plugins.
Yii 2 implementation of Quill, modern WYSIWYG editor.
Quill
You can find Quill at https://quilljs.com/
yii2-quill
- Added Emoji support (Note: Register asset
ofilin\quill\EmojiAsseton your pages edited with quill for correct display Emoji smiles)
Installation
Add the package to your composer.json:
{
"require": {
"ofilin/yii2-quill": "^0.3"
}
}
and run composer update or alternatively run composer require ofilin/yii2-quill:^0.3
Usage
Use it as an active field extension
<?= $form->field($model, $attribute)->widget(\ofilin\quill\Quill::class, []) ?>
Or as a standalone widget
<?= \ofilin\quill\Quill::widget(['name' => 'editor', 'value' => '']) ?>
With Emoji plugin
<?= $form->field($model, 'text_msg')->label(false)->widget(\ofilin\quill\Quill::class, [
'theme' => 'snow',
'placeholder' => 'Text',
'toolbarOptions' => [
["bold", "italic", "code", "link", "emoji"],
],
]) ?>
统计信息
- 总下载量: 245
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-28