Metrics
0
Watch 11 Star 30 Fork 6

smallwei / avue-plugin-ueditorJavaScript

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
avue 富文本编辑器 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

avue-plugin-ueditor

avue 富文本编辑器

npm

avue-plugin-ueditor

git

avue-plugin-ueditor

demo

use

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

2.导入
import AvueUeditor from 'avue-plugin-ueditor'
Vue.use(AvueUeditor);

3.使用
...
column:[
  ...
    {
      label:'test',
      prop:'test',
      component: "AvueUeditor"
    }
  ...
]
或者直接
<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"
  }
}
...

Comments ( 0 )

You need to Sign in for post a comment

Help Search