unimodern/yii2-ckeditor

Yii2 widget for ckeditor

V2.0.2 2016-06-20 15:01 UTC

This package is not auto-updated.

Last update: 2024-05-01 17:20:30 UTC


README

Disclaimer

This is forked from Edofre/yii2-ckeditor to release as stable

Installation

The preferred way to install this extension is through composer.

To install, either run

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

or add

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

to the require section of your composer.json file.

Usage

ActiveForm usage with a model

<?= $form->field($model, 'body')->widget(\unimodern\ckeditor\CKEditor::className(), [
    'editorOptions' => [
        'language' => 'nl',
    ],
]) ?>

Usage without model

<?= \unimodern\ckeditor\CKEditor::widget([
    'name'          => 'content',
    'editorOptions' => [
        'height'      => '400px',
    ],
]) ?>