Git Product home page Git Product logo

Comments (3)

Weeken avatar Weeken commented on June 18, 2024

@zhilizhui 可以参考这里
如果上传七牛云的,也可以这样设置,不必按官网的
uploadImgServer: 'https://up-z2.qbox.me/', uploadFileName: 'file', uploadImgMaxLength: 1, uploadImgParams: { token: '' // 属性值会自动进行 encode ,此处无需 encode }, uploadImgParamsWithUrl: true, uploadImgHooks: { // success: (xhr, editor, result) => { // // 图片上传并返回结果,图片插入成功之后触发 // // xhr 是 XMLHttpRequst 对象,editor 是编辑器对象,result 是服务器端返回的结果 // // console.log(result) // }, // fail: (xhr, editor, result) => { // // console.log(result) // }, customInsert: (insertImg, result/*, editor*/) => { // console.log(insertImg) let url = http://p0ry9w0d5.bkt.clouddn.com/${result.key}`
insertImg(url)
}
}`

from vue-wangeditor-simple.

zhujinhu21 avatar zhujinhu21 commented on June 18, 2024

怎么显示上传图片选项 设置了editor.customConfig.uploadImgServer = '/upload'

from vue-wangeditor-simple.

zhujinhu21 avatar zhujinhu21 commented on June 18, 2024

@zhilizhui 请问你是怎么解决的?vue-wangeditor-simple create之后设置editor.customConfig.uploadImgServer = '/upload' 无效

from vue-wangeditor-simple.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.