Skip to content

crazyfd/yii2-ueditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-ueditor

  • @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')
			]

		],
	];
}

About

Yii2 百度编辑器

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published