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

v1.0.9 2022-06-03 07:35 UTC

This package is auto-updated.

Last update: 2024-09-30 01:35:57 UTC


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
    ]) ?>```