xinyeweb/yii2-wangeditor

yii2-wangeditor

Installs: 14

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

dev-master 2018-05-09 07:54 UTC

This package is auto-updated.

Last update: 2022-01-16 14:56:58 UTC


README

yii2-wangeditor

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist xinyeweb/yii2-wangeditor "*"

or add

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

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= $form->field($model, 'description')->widget(xinyeweb\wangeditor\WANGEditor::className(),[
        'qiniu' => 1, // 1 开启 0 关闭
        'uptokenurl' => Yii::$app->urlManager->createUrl(['public/get-up-token']), //获取uptoken
        'qiniudomain' => 'http://p8c2d3xyx.bkt.clouddn.com/' //储存空间的域名
]) ?>```