s1lver / yii2-summernote
Summernote Super Simple WYSIWYG Editor for Yii2
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 1
Type:yii2-extension
Requires
- php: ^8.0|^8.1
- bower-asset/summernote: @stable
- yiisoft/yii2: ^2.0.45
Requires (Dev)
- phpunit/phpunit: ^9.5
- roave/infection-static-analysis-plugin: ^1.16
- roave/security-advisories: dev-latest
- vimeo/psalm: ^4.30|^5.8
README
Install
composer require s1lver/yii2-summernote "^1.0.0"
or add
"s1lver/yii2-summernote": "^1.0.0"
to the require
section of your composer.json file.
How to use
Displaying custom buttons
<?= $form->field($model, 'test')->widget(SummernoteWidget::class, [ 'customToolbarButtons' => [ [ 'type' => 'dropdown', 'label' => 'Custom tags', 'tooltip' => 'Custom tags', 'values' => [ 'Tag1', 'Tag2', 'Tag3', ], ], ], ]) ?>