The preferred way to install this extension is through composer.
Either run
$ php composer.phar require lubobill1990/yii2-simditor "*"
or add
"lubobill1990/yii2-simditor": "*"
to the require section of your composer.json
file.
echo \lubobill1990\yii2\widget\Simditor::widget([
'clientOptions'=>[
'toolbarHidden' => false,
'toolbar' => [//default true
'title',
'bold',
'italic',
'underline',
'strikethrough',
'fontScale'
]
]
]);
use lubobill1990\yii2\widget\Simditor;
echo $form->field($model, 'content')->widget(Simditor::class,[
'clientOptions'=>[
'toolbarHidden'=>false,
'toolbar'=>[//default true
'title',
'bold',
'italic',
'underline',
'strikethrough',
'fontScale'
]
]
]);
For other options, refer to this website http://simditor.tower.im/
This package is forked from anxu/yii2-simditor