PHP code example of rikcage / yii2-sceditor

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

    

rikcage / yii2-sceditor example snippets


use rikcage\sceditor\SCEditor;

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

use rikcage\sceditor\SCEditor;

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

$ php composer.phar