xzprod/quill-widget

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

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Language:CSS

pkg:composer/xzprod/quill-widget

1.0 2019-06-11 19:18 UTC

This package is auto-updated.

Last update: 2025-12-13 23:03:11 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']) ?>