asr-oms-plugin-ueditor

0.0.1 • Public • Published

asr-plugin-ueditor

avue 富文本编辑器

npm

asr-plugin-ueditor

git

asr-plugin-ueditor

demo

use

1.安装
npm install asr-plugin-ueditor --save

2.导入
import AsrUeditor from 'asr-plugin-ueditor'
Vue.use(AsrUeditor);

3.使用
...
column:[
  ...
    {
      label:'test',
      prop:'test',
      component: "AsrUeditor"
    }
  ...
]
或者直接
<avue-ueditor v-model="text" ></avue-ueditor>

4.图片上传配置————(支持oss,支持ctrl+v粘贴图片)
具体用法参考https://avuex.avue.top/#/doc/form-upload
upload: {
  //普通图片上传
  action: "https://avueupload.91eic.com/upload/list",
  props: {
    res: "data.0",
    url: "url"
  },
  //七牛云oss配置
  qiniu: {
    AK: "",
    SK: "",
    scope: "test",
    url: "http://pm7cc17lu.bkt.clouddn.com/",
    deadline: 1
  },
  //阿里云oss配置
  ali: {
    region: "oss-cn-beijing",
    endpoint: "oss-cn-beijing.aliyuncs.com",
    accessKeyId: "",
    accessKeySecret: "",
    bucket: "avue"
  },
  //asr 上传配置
  asr: {
    url: "http://192.168.1.52/cloud/oss/upload/token", //获取token地址
    dir: "test/", //oss目录
    cdn: "http://cdn.dev.jiazhangkj.com/"   //cdn地址
  }
}
...

Readme

Keywords

none

Package Sidebar

Install

npm i asr-oms-plugin-ueditor

Weekly Downloads

1

Version

0.0.1

License

none

Unpacked Size

154 kB

Total Files

16

Last publish

Collaborators

  • xionghaiz