edofre / yii2-ckeditor
Yii2 widget for ckeditor
V1.0.2
2018-01-07 12:15 UTC
Requires
- php: >=5.5.0
- bower-asset/ckeditor: ~4.8.0
- yiisoft/yii2: *
- yiisoft/yii2-jui: *
This package is not auto-updated.
Last update: 2026-02-24 11:11:42 UTC
README
Installation
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.
Usage
ActiveForm usage with a model
<?= $form->field($model, 'body')->widget(\edofre\ckeditor\CKEditor::className(), [ 'editorOptions' => [ 'language' => 'nl', ], ]) ?>
Usage without model
<?= \edofre\ckeditor\CKEditor::widget([ 'name' => 'content', 'editorOptions' => [ 'height' => '400px', ], ]) ?>