The preferred way to install this extension is through composer.
To install, either run
$ php composer.phar require edofre/yii2-ckeditor "V1.0.2"
or add
"edofre/yii2-ckeditor": "V1.0.2"
to the require
section of your composer.json
file.
<?= $form->field($model, 'body')->widget(\edofre\ckeditor\CKEditor::className(), [
'editorOptions' => [
'language' => 'nl',
],
]) ?>
<?= \edofre\ckeditor\CKEditor::widget([
'name' => 'content',
'editorOptions' => [
'height' => '400px',
],
]) ?>