Wrapper for Trumbowyg WYSIWYG.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist artkost/yii2-trumbowyg "@stable"
or add
"artkost/yii2-trumbowyg": "@stable"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code:
echo \artkost\yii2\trumbowyg\Trumbowyg::widget([
'name' => 'myname',
'settings' => [
'lang' => 'ru'
]
]);
use artkost\yii2\trumbowyg\Trumbowyg;
echo $form->field($model, 'content')->widget(Trumbowyg::className(), [
'settings' => [
'lang' => 'ru'
]
]);