PHP code example of unimodern / yii2-ckeditor

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

    

unimodern / yii2-ckeditor example snippets


<?= $form->field($model, 'body')->widget(\unimodern\ckeditor\CKEditor::className(), [
    'editorOptions' => [
        'language' => 'nl',
    ],
]) 

<?= \unimodern\ckeditor\CKEditor::widget([
    'name'          => 'content',
    'editorOptions' => [
        'height'      => '400px',
    ],
])