2017 © Pedro Peláez
 

library yii2ueditor

百度html编辑

image

xindong888/yii2ueditor

百度html编辑

  • Tuesday, September 19, 2017
  • by xindong888
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

功能说明:, (*1)

文本输入,图片上传,图片在线管理,涂鸦,视频上传等都可以完美使用 image, (*2)

使用说明:, (*3)

在控制器内他添加如下代码:, (*4)

class PostsController extends Controller
{
    public function actions()
    {
        return [
            'yii2editor'=>[
                'class'=>UEditorActionX::className(),
                'config'=>[
                    'imagePathFormat'=>'/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}',
                    //'imageManagerUrlPrefix'=>'http://localhost',//前缀,主要是为了前台访问的
                    'imageManagerListPath'=>Yii::getAlias('@web').'/upload/image/'//这个是必填的,显示图片列表
                ]
            ]
        ];
    }
}

视图表单内添加:, (*5)


<?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'content')->widget(\yii2ueditor\UEditorX::className()) ?> <div class="form-group"> <?= Html::submitButton(Yii::t('common', 'Posted'), ['class' => 'btn btn-primary']) ?> </div> <?php ActiveForm::end(); ?>

The Versions

19/09 2017

dev-master

9999999-dev

百度html编辑

  Sources   Download

by Avatar xindong888

19/09 2017

v1.2

1.2.0.0

百度html编辑

  Sources   Download

by Avatar xindong888

17/09 2017

v1.1

1.1.0.0

百度html编辑

  Sources   Download

by Avatar xindong888