Yii 2.0: yii2-sceditor

Renders a SCEditor WYSIWYG bbcode and xhtml editor plugin widget.
1 follower
  1. Installation
  2. Usage
  3. Further Information


The preferred way to install this extension is through composer.

Either run

php composer.phar require franciscomaya/yii2-sceditor:dev-master

or add

"franciscomaya/yii2-sceditor" : "dev-master"

to the require section of your composer.json file.


Once the extension is installed, simply use it in your code by :

use franciscomaya\sceditor\SCEditor;
<?= $form->field($model, 'text')->widget(SCEditor::className(), [
        'options' => ['rows' => 6],
        'clientOptions' => [
            'plugins' => 'bbcode',
    ]) ?>

Further Information

Please, check the SCEditor plugin site documentation for further information about its configuration options.

Be the first person to leave a comment

Please to leave your comment.

Create extension
No downloadable files yet