grevoman / easyeditor-yii2
此包已被弃用,不再维护。未建议替换包。
示例项目。Yii2小部件,用于im4aLL/easyeditor WYSISYG编辑器
1.1.3
2019-07-22 19:46 UTC
Requires
- yiisoft/yii2: ^2.0
README
此Yii2小部件允许使用Easy editor,一个jQuery richtext html / wysiwyg编辑器,(非常轻量,简单易用)Habib Hadi。
安装
安装此扩展的首选方式是通过composer。
运行以下命令之一:
$ composer require grevoman/easyeditor-yii2
或者将以下内容添加到你的composer.json文件的require部分:
"grevoman/easyeditor-yii2": "^1.0"
...
使用
简单使用
use grevoman\yii2easyeditor\widgets\EasyEditor;
<?= EasyEditor::widget([
]) ?>
高级使用
use grevoman\yii2easyeditor\widgets\EasyEditor;
<?= EasyEditor::widget([
'elementId' => 'test',
'buttons' => "'bold', 'italic', 'link', 'x'",
])