2017 © Pedro Peláez
 

yii2-extension yii2-ueditor

yii2-ueditor

image

xinyeweb/yii2-ueditor

yii2-ueditor

  • Monday, May 9, 2016
  • by hotarzhang
  • Repository
  • 2 Watchers
  • 1 Stars
  • 26 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 13 % Grown

The README.md

yii2-ueditor

yii2-ueditor, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist xinyeweb/yii2-ueditor:dev-master

or add, (*4)

"xinyeweb/yii2-ueditor": "dev-master"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

public function actions()
{
    return [
        'upload' => [
            'class' => 'xinyeweb\ueditor\UEditorAction',
            'config' => [
                'imageRoot' => dirname(\Yii::$app->basePath).dirname(\Yii::getAlias('@web')). DIRECTORY_SEPARATOR . 'images_webroot',//圖片的根路径
                //'imageUrlPrefix' => 'http://www.baidu.com',
                //'imagePathFormat' =>  dirname(Yii::$app->basePath)."/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}" ,
            ]
        ]
    ];
}

使用:, (*7)

<?= $form->field($model, 'description')->widget('\xinyeweb\ueditor\UEditor',[]) ?>

The Versions

09/05 2016

dev-master

9999999-dev

yii2-ueditor

  Sources   Download

BSD-3-Clause

The Requires

 

by XY Team - Hoter

extension yii2