PHP code example of anxu / yii2-simditor

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

    

anxu / yii2-simditor example snippets


echo \anxu\Yii2Simditor::widget([
    'toolbarSet'=>[
        'toolbarHidden'=>false,
        'toolbar'=>[//default true
            'title',
            'bold',
            'italic',
            'underline',
            'strikethrough',
            'fontScale'
        ]
    ]
]);

use anxu\Yii2Simditor;
echo  $form->field($model, 'content')->widget(Yii2Simditor::classname(),[
    'toolbarSet'=>[
        'toolbarHidden'=>false,
        'toolbar'=>[//default true
            'title',
            'bold',
            'italic',
            'underline',
            'strikethrough',
            'fontScale'
        ]
    ]
]);
bash
$ php composer.phar