edofre/yii2-ckeditor

Yii2 widget for ckeditor

Installs: 380

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 2

Forks: 1

Type:yii2-extension

V1.0.2 2018-01-07 12:15 UTC

This package is not auto-updated.

Last update: 2024-11-19 04:58:17 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

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