yii2-sceditor Renders a SCEditor WYSIWYG bbcode and xhtml editor plugin widget.

  1. Installation
  2. Usage
  3. Further Information
  1. Installation
  2. Usage
  3. Further Information

Installation ¶

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.

Usage ¶

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.

1 0
1 follower
0 downloads
Yii Version: 2.0
License: BSD-2-Clause
Category: User Interface
Developed by: Francisco Maya Francisco Maya
Created on: Sep 2, 2015
Last updated: 10 years ago

Related Extensions