Giter Club home page Giter Club logo

Comments (5)

liuhong1happy avatar liuhong1happy commented on August 14, 2024

@yuiooo
你好!介于目前编辑器无法支持七牛上传。在0.2.27版本中加入customUploader属性,请自行实现src/utils/FileUpload中的所有对外公开方法。
我们会尽快在下一版本中加入原生对七牛上传的支持。谢谢你的反馈~

from react-umeditor.

yuiooo avatar yuiooo commented on August 14, 2024

请问有没有关于customUploader的使用的demo参考下呢

from react-umeditor.

liuhong1happy avatar liuhong1happy commented on August 14, 2024

@yuiooo 请参考七牛的关于“上传”的文档。

from react-umeditor.

yuiooo avatar yuiooo commented on August 14, 2024
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.

liuhong1happy avatar liuhong1happy commented on August 14, 2024

@yuiooo 欢迎加我qq284362096(刘红)!能详细给定你的umeditorQiniuUploader具体实现嘛。尽快给你相应的正确代码方案。

from react-umeditor.

Related Issues (20)

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.