himiklab/yii2-ckeditor-widget WYSIWYG editor widget for Yii2

widgetwysiwygckeditor

CKEditor Widget for Yii2

WYSIWYG HTML editor widget for Yii2 based on CKEditor.

Installation

The preferred way to install this extension is through composer.

Add

"himiklab/yii2-ckeditor-widget" : "*"

to the require section of your application's composer.json file. If you use "minimum-stability": "stable" add before this line:

"ckeditor/ckeditor": "dev-full/stable"

Usage

Using as field in ActiveForm:

use himiklab\ckeditor\CKEditor;

<?= $form->field($model, 'text')->widget(CKEditor::className(), [
    'editorOptions' => ['height' => '500px']
]) ?>

Using as inline field:

use himiklab\ckeditor\CKEditor;

<?= CKEditor::widget([
    'name' => 'comment',
    'value' => 'Please write your comment',
    'editorOptions' => ['height' => '500px']
]) ?>

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.4 is the latest of 3 releases



MIT license
Stats
2 github stars & 3 github forks
2 downloads in the last day
40 downloads in the last 30 days
1553 total downloads