xzprod/quill-widget

此软件包最新版本(1.0)没有可用的许可证信息。

1.0 2019-06-11 19:18 UTC

This package is auto-updated.

Last update: 2024-09-13 20:24:46 UTC


README

安装

composer require xzprod/quill-widget

为模型输出quill。

<?= $form->field($forum, 'title')->textInput(['maxlength' => true])->widget(QuillWidget::class, [
        'containerId' => 'testEl', // id элемента, в котором будет инициализировано окно редактора
        'clientOptions' => [ // настройки самого quill
            'readOnly' => true
        ]
    ]
) ?>

单独字段输出quill。

//targetInputId - input id, в который будет помещен html контент
<textarea id="exaple_id"></textarea>
<?= QuillWidget::widget(['targetInputId' => 'exaple_id', 'containerId' => 'test']) ?>