Yii 2.0: yii2ckeditor

Really basic ckeditor wrapper
1 follower

Yii2 ckeditor widget

Full code @ github


The preferred way to install this extension is through composer.

To install, either run

$ php composer.phar require edofre/yii2-ckeditor "@dev"

or add

"edofre/yii2-ckeditor": "@dev"

to the require section of your composer.json file.


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',
]) ?>

Be the first person to leave a comment

Please to leave your comment.

Create extension
No downloadable files yet