mhayajneh / yii2-ckeditor5-word
CKEditor for Yii
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2025-02-26 17:21:41 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 mhayajneh/yii2-ckeditor5-word "*"
or add
"mhayajneh/yii2-ckeditor5-word": "*"
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 ]) ?>```