himiklab/yii2-ckeditor-widget

This package is abandoned and no longer maintained. No replacement package was suggested.

WYSIWYG editor widget for Yii2

Installs: 1 584

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 3

Type:yii2-extension

This package has no released version yet, and little information is available.


README

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