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