xzprod / quill-widget
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:CSS
Requires
- php: ^7.0
- yiisoft/yii2: >=2.0
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']) ?>