dev-master
9999999-devyii2-wangeditor
MIT
The Requires
by hoter
extension yii2
yii2-wangeditor
yii2-wangeditor, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist xinyeweb/yii2-wangeditor "*"
or add, (*4)
"xinyeweb/yii2-wangeditor": "dev-master"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
php
<?= $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/' //储存空间的域名
]) ?>
, (*7)
yii2-wangeditor
MIT
extension yii2