kksshp / yii2-ckeditor
CKEditor for Yii2
Installs: 47
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
README
CKEditor for Yii2 with ckeditor 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 kksshp/yii2-ckeditor "*"
or add
"kksshp/yii2-ckeditor": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
use kksshp\ckeditor\CKEditor; <?= $form->field($model, 'text')->widget(CKEditor::className(), [ 'options' => ['rows' => 6], ]) ?>``` Upload Url ----- ```php use kksshp\ckeditor5\CKEditor; <?= $form->field($model, 'text')->widget(CKEditor::className(), [ 'options' => ['rows' => 6], 'uploadUrl' => 'image/upload', //File upload url ]) ?>```