定制 ofilin/yii2-quill 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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\EmojiAsset on 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-28