sangroya/yii2-ckeditor5

CKEditor for Yii

Installs: 4 664

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 0

Type:yii2-extension

0.1.1 2020-12-31 12:54 UTC

This package is auto-updated.

Last update: 2024-04-11 18:47:06 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
    ]) ?>```