PHP code example of lubobill1990 / yii2-simditor

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

    

lubobill1990 / yii2-simditor example snippets


echo \lubobill1990\yii2\widget\Simditor::widget([
    'clientOptions'=>[
        'toolbarHidden' => false,
        'toolbar' => [//default true
            'title',
            'bold',
            'italic',
            'underline',
            'strikethrough',
            'fontScale'
        ]
    ]
]);

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