franciscomaya / yii2-sceditor
SCEditor, a lightweight WYSIWYG BBCode & HTML editor extension for Yii 2.0 Framework
Package info
github.com/franciscomaya/yii2-sceditor
Language:JavaScript
Type:yii2-extension
pkg:composer/franciscomaya/yii2-sceditor
dev-master
2015-09-02 21:27 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-04-01 15:57:12 UTC
README
SCEditor, a lightweight WYSIWYG BBCode & HTML editor extension for Yii 2.0 Framework
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.