kotchuprik / yii2-trix
Basecamp Trix editor for yii2
dev-master
2015-12-27 12:19 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-01 03:26:52 UTC
README
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());