zelenin/yii2-summernote-widget

Yii2 Summernote widget. Super simple WYSIWYG editor on Bootstrap

Installs: 1 076

Dependents: 1

Stars: 13

Watchers: 4

Forks: 9

Language: PHP

0.1.1 2015-03-08 00:00 UTC

README

Yii2 Summernote widget. Super simple WYSIWYG editor on Bootstrap

Installation

Composer

The preferred way to install this extension is through Composer.

Either run

php composer.phar require zelenin/yii2-summernote-widget "dev-master"

or add

"zelenin/yii2-summernote-widget": "dev-master"

to the require section of your composer.json

Usage

<?= $form->field($model, 'content')->widget(Summernote::className(), [
    'clientOptions' => [
        ...
    ]
]) ?>

or

<?= Summernote::widget([
    'name' => 'editor_id',
    'clientOptions' => [
        ...
    ]
]) ?>

See clientOptions

Author

Aleksandr Zelenin, e-mail: aleksandr@zelenin.me