fabriziocaldarelli / yii2-ckeditor
Yii2 CKEditor
Package info
github.com/FabrizioCaldarelli/yii2-ckeditor
Type:yii2-extension
pkg:composer/fabriziocaldarelli/yii2-ckeditor
1.1.0
2024-10-28 10:36 UTC
Requires
- npm-asset/ckeditor: ~4.22.0
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2026-03-01 00:24:36 UTC
README
Yii2 CKEditor
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist fabriziocaldarelli/yii2-ckeditor "*"
or add
"fabriziocaldarelli/yii2-ckeditor": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= $form->field($model, 'textField')->widget(\sfmobile\ext\ckeditor\CKEditor::className(), [ 'pluginOptions' => [ 'height' => '500px' ] ]) ?>
Using 'pluginOptions', you can pass all configuration parameters to CKEditor plugin. In the example, I set the height at 500px