PHP code example of sangroya / yii2-ckeditor5

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

    

sangroya / yii2-ckeditor5 example snippets


use sangroya\ckeditor5\CKEditor;


<?= $form->field($model, 'text')->widget(CKEditor::className(), [
        'options' => ['rows' => 6],
       
    ]) 

use sangroya\ckeditor5\CKEditor;


<?= $form->field($model, 'text')->widget(CKEditor::className(), [
        'options' => ['rows' => 6],
       'uploadUrl' => 'site/upload', //this will be the url where you want to ckeditor send the post request with file data
    ]) 

php composer.phar