PHP code example of webschool / yii2-ckeditor

1. Go to this page and download the library: Download webschool/yii2-ckeditor 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/ */

    

webschool / yii2-ckeditor example snippets


use webschool\ckeditor\CKEditor;
use yii\helpers\Html;

CKEditor::widget([
    'editorOptions' => [
        'preset' => 'full', // basic, standard, full
    ]
]);

//или c ActiveForm

echo $form->field($model, 'content')->widget(CKEditor::className(),[
    'editorOptions' => [
        'preset' => 'full', // basic, standard, full
    ],
]);