edofre / yii2-ckeditor
Yii2 widget for ckeditor
Installs: 383
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 1
Type:yii2-extension
Requires
- php: >=5.5.0
- bower-asset/ckeditor: ~4.8.0
- yiisoft/yii2: *
- yiisoft/yii2-jui: *
This package is not auto-updated.
Last update: 2024-12-17 05:32:48 UTC
README
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', ], ]) ?>