PHP code example of keygenqt / yii2-sceditor

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

    

keygenqt / yii2-sceditor example snippets


<?= $form->field($model, 'text')->widget(\keygenqt\sceditor\SCEditor::className(), [
    'jsOption' => [
        'height' => 300,
        'resizeWidth' => false,
        'toolbar' => "bold,italic,underline,strike|bulletlist,orderedlist,horizontalrule|link,emoticon,image,youtube|date,time|unlink,removeformat" . (YII_DEBUG ? '|source' : ''),
        'style' => 'minified/jquery.sceditor.default.min.css',
    ]
])