https://github.com/krissss/yii2-wang-editor
Yii2 wangEditor widget
https://github.com/krissss/yii2-wang-editor
editor wangeditor widget yii2
Last synced: 6 months ago
JSON representation
Yii2 wangEditor widget
- Host: GitHub
- URL: https://github.com/krissss/yii2-wang-editor
- Owner: krissss
- Created: 2017-08-31T07:37:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-28T01:20:45.000Z (over 6 years ago)
- Last Synced: 2025-03-21T03:47:49.567Z (7 months ago)
- Topics: editor, wangeditor, widget, yii2
- Language: PHP
- Size: 11.7 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii2 wangEditor widget
======================Yii2 wangEditor widget
v2.x 与 [v1.x](https://github.com/krissss/yii2-wang-editor/tree/v1.2) 版本之间存在差异,升级请注意
[wangEditor 官网](http://www.wangeditor.com/)
安装
------------```
composer require kriss/yii2-wang-editor
```使用
-----### widget
```php
'inputName',
//'canFullScreen' => true, // 增加全屏的按钮
//'customConfig' => [], // 扩展配置
]);
// or
echo $form->field($model, 'content')->widget(WangEditorWidget::class, [
//'canFullScreen' => true,
]);
```### action
```php
[
'class' => UploadAction::class,
'savePath' => '@webroot/uploads',
'displayPath' => '@web/uploads',
],
];
}
}
```