zelenin / yii2-summernote-widget
Yii2 Summernote widget. Super simple WYSIWYG editor on Bootstrap
Installs: 3 476
Dependents: 0
Suggesters: 0
Security: 0
Stars: 21
Watchers: 2
Forks: 14
Open Issues: 3
Type:yii2-extension
Requires
- bower-asset/codemirror: 5.*@stable
- bower-asset/font-awesome: 4.*@stable
- bower-asset/summernote: 0.*@stable
- yiisoft/yii2: ~2
This package is not auto-updated.
Last update: 2016-04-10 08:02:05 UTC
README
Yii2 Summernote widget
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