xzprod/quill-widget

There is no license information available for the latest version (1.0) of this package.

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']) ?>