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

dev-master 2015-12-27 12:19 UTC

This package is not auto-updated.

Last update: 2024-11-09 19:45:31 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());