kotchuprik / yii2-trix
Basecamp Trix editor for yii2
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-12-21 20:35:56 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());