arifinm/yii2-ckeditor5

ckeditor 5 widget for yii2 framework

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 11

Type:extension

1.0.0 2020-04-30 08:58 UTC

This package is auto-updated.

Last update: 2024-09-29 05:36:19 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 arifinm/yii2-ckeditor5 "*"

or add

"arifinm/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 \arifinm\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