Comments (3)
@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.
怎么显示上传图片选项 设置了editor.customConfig.uploadImgServer = '/upload'
from vue-wangeditor-simple.
@zhilizhui 请问你是怎么解决的?vue-wangeditor-simple create之后设置editor.customConfig.uploadImgServer = '/upload' 无效
from vue-wangeditor-simple.
Related Issues (16)
- 报错 HOT 1
- 无法获取原有数据 HOT 18
- 如何在浏览器中直接使用通过script 引入的方式情况下 HOT 3
- 多个编辑框距离过近时,改变颜色的菜单会显示出下一个编辑框的内容 HOT 1
- 动态添加多个vue-wangeditor-smiple,删除其中一个,vue-wangeditor的v-model绑定的值不会改变 HOT 2
- 发现v-model和init-content同时使用相同的变量值,输入内容会自动换行 HOT 1
- 编辑功能光标乱跳问题
- 配置后不显示上传图片选项 HOT 3
- v-model 把文字都删除后,文本框没有清空 HOT 9
- 怎么获取文本框的内容呢? HOT 5
- 清楚当前格式的工具栏 HOT 1
- 把富文本框中文字,用鼠标全选后,然后按键盘delete删除后,文本框清空,但是model值无法清空 HOT 5
- Error in mounted hook: "TypeError: Cannot read property 'includes' of undefined" HOT 2
- clearStyle、clearFormat、clearAll方法中报setContent is not a function HOT 1
- 编辑器后面4个功能字体图标在部分浏览器中不兼容 HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-wangeditor-simple.