grevoman / easyeditor-yii2
Example project. Yii2 widget for im4aLL/easyeditor WYSISYG editor
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:yii2-widget
Requires
- yiisoft/yii2: ^2.0
README
This Yii2 widget allows to make use of Easy editor, a jQuery richtext html / wysiwyg editor, (very lightweight, easy and simple) Habib Hadi.
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require grevoman/easyeditor-yii2
or add
"grevoman/easyeditor-yii2": "^1.0"
to the require
section of your composer.json
file.
Usage
Simple usage:
use grevoman\yii2easyeditor\widgets\EasyEditor;
<?= EasyEditor::widget([
]) ?>
Advanced usage:
use grevoman\yii2easyeditor\widgets\EasyEditor;
<?= EasyEditor::widget([
'elementId' => 'test',
'buttons' => "'bold', 'italic', 'link', 'x'",
])