crazyfd / yii2-ueditor
yii2使用百度编辑器上传
Installs: 202
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 1
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-05 08:27:16 UTC
README
- @author crazyfd crazyfd@qq.com
- @version 1.0
- @desc 百度HTML编辑器 html editer for Yii Framework 2
How to install? To use this widget, you may insert the following code:
Get it via composer by adding the package to your composer.json
:
{ "require": { "crazyfd/yii2-ueditor": "dev-master" } }
php composer.phar update
Usage
<?php <?= $form->field($model, 'content')->widget(Ueditor::className(),[]) ?> 控制器中添加 public function actions() { return [ 'ueditor' => [ 'class' => 'crazyfd\ueditor\Upload', 'config'=>[ 'uploadDir'=>date('Y/m/d') ] ], ]; }