Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

harunmahfud/yii2-ckeditor5

 
 

Repository files navigation

YII2 CKEditor 5

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 stkevich/yii2-ckeditor5 "*"

or add

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

About

ckeditor 5 widget for yii2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%