Comments (5)
@yuiooo
你好!介于目前编辑器无法支持七牛上传。在0.2.27版本中加入customUploader
属性,请自行实现src/utils/FileUpload
中的所有对外公开方法。
我们会尽快在下一版本中加入原生对七牛上传的支持。谢谢你的反馈~
from react-umeditor.
请问有没有关于customUploader的使用的demo参考下呢
from react-umeditor.
from react-umeditor.
const plugins = {
image: {
uploader:{
url:'http://upload.qiniu.com',
name:'qiniu'
},
customUploader:umeditorQiniuUploader
}
}
...
// render()
<Editor ref="editor" defaultValue=" " plugins={plugins}></Editor>
(上面是我的代码,运行结果上传的url是uploader的url,umeditorQiniuUploader是我按照你们的src/utils/FileUpload.js格式写的一个上传器,但是无论我怎么传这个customUploader,无论uploader是否传值,实际代码运行的还是自带的uploader,例如)
const plugins = {
image: {
customUploader:umeditorQiniuUploader
}
}
这样,实际上传的url就是'/upload',就是说,customUploader并没有运行,这是为什么呢?
补充:我的react-umeditor版本是0.3.3
from react-umeditor.
@yuiooo 欢迎加我qq284362096(刘红)!能详细给定你的umeditorQiniuUploader具体实现嘛。尽快给你相应的正确代码方案。
from react-umeditor.
Related Issues (20)
- 发现设置customUploader无效的bug
- 图片拖拽上传UI 错误,如图
- clone下来的代码不存在example文件
- 上传图片功能不能设置携带cookies? HOT 1
- 现在支持视频上传功能吗 HOT 2
- 从 word 里粘贴内容,有冗余标签
- 关于部分格式按钮不起作用的问题
- 粘贴的表格,再读出来的时候不显示表格边框 HOT 1
- 为什么a标签这个功能没加? HOT 1
- ie下使用table报错 HOT 2
- 请问一下上传图片的请求头怎么配置?我们项目请求需要传token HOT 3
- 请问一下,如何让toolbar固定在顶部,还有insert一段代码的时候怎样获得当前鼠标位置 HOT 1
- editor.less在新版本create-react-app生成的项目下eslint有警告。text-emphasis-position: under改成under left可以。 HOT 4
- 近期是否会支持视频的上传,视频的上传在业务中还是比较常见的。 HOT 1
- 图片插入之后,会失去焦点 对于之后包括颜色等设置会无法更改
- 怎样实现拖拽到编辑器内容区域实现上传图片?
- 样式eslint检查出错
- 上传图片在谷歌浏览器低版本中(58版本)报错
- 如何获取纯文本 HOT 3
- 上传图片:filter
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 react-umeditor.