mikeliang / yii2-ckeditor5
ckeditor 5 widget for yii2 framework, based on stkevich/yii2-ckeditor5
This package's canonical repository appears to be gone and the package has been frozen as a result.
1.0.0
2018-07-13 07:53 UTC
Requires
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2021-05-25 02:19:08 UTC
README
More details about it on site https://docs.ckeditor.com/ckeditor5/latest/builds/
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist mikeliang/yii2-ckeditor5 "*"
or add
"mikeliang/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 \mikeliang\CKEditor5\EditorClassic; ... $form->field($model, 'fieldName')->widget(EditorClassic::className(), []);
You can edit toolbar or uploadUrl:
$form->field($model, 'fieldName')->widget(EditorClassic::className(), [ 'toolbar' => ['heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote'], 'uploadUrl' => '/someUpload.php', ] );
More info in guides