sangroya / yii2-ckeditor5
CKEditor for Yii
Package info
github.com/sangroya/yii2-ckeditor5
Type:yii2-extension
pkg:composer/sangroya/yii2-ckeditor5
0.1.1
2020-12-31 12:54 UTC
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2026-02-28 01:44:05 UTC
README
CKEditor for Yii with static build (https://docs.ckeditor.com/ckeditor5/latest/builds/)
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist sangroya/yii2-ckeditor5 "*"
or add
"sangroya/yii2-ckeditor5": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
use sangroya\ckeditor5\CKEditor; <?= $form->field($model, 'text')->widget(CKEditor::className(), [ 'options' => ['rows' => 6], ]) ?>``` Upload Url ----- ```php use sangroya\ckeditor5\CKEditor; <?= $form->field($model, 'text')->widget(CKEditor::className(), [ 'options' => ['rows' => 6], 'uploadUrl' => 'site/upload', //this will be the url where you want to ckeditor send the post request with file data ]) ?>```