sangroya / yii2-ckeditor5
CKEditor for Yii
Installs: 5 726
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 1
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2025-04-27 23:38:46 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 ]) ?>```