PHP code example of arifinm / yii2-ckeditor5

1. Go to this page and download the library: Download arifinm/yii2-ckeditor5 library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

arifinm / yii2-ckeditor5 example snippets


use \arifinm\ckeditor5\EditorClassic;
...
$form->field($model, 'fieldName')->widget(EditorClassic::className(), []);

$form->field($model, 'fieldName')->widget(EditorClassic::className(), 
    [
        'toolbar' => ['heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote'],
        'uploadUrl' => '/someUpload.php',
    ]
);