Basecamp Trix Widget for yii2
is a wrapper for trix text editor.
Once the extension is installed, simply use it in your code:
echo \kotchuprik\trix\Widget::widget();
echo \kotchuprik\trix\Widget::widget([
'model' => $model,
'attribute' => 'attributeModel',
]);
use \kotchuprik\trix\Widget;
echo $form->field($model, 'attributeModel')->widget(Widget::className());
No stable releases.
Comments