Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上传图片的插件是哪个?具体怎么用? #35

Closed
Aaronphy opened this issue Mar 3, 2021 · 3 comments
Closed

上传图片的插件是哪个?具体怎么用? #35

Aaronphy opened this issue Mar 3, 2021 · 3 comments

Comments

@Aaronphy
Copy link

Aaronphy commented Mar 3, 2021

想给上传图片增加后端接口,有相关自定义文档吗?

@pd4d10
Copy link
Owner

pd4d10 commented Mar 3, 2021

https://github.com/bytedance/bytemd#editor

<Editor
  uploadImages={async (files) => {
    // upload images
    return [
      {
        url: '',
        alt: '', // optional
        title: '', // optional
      }
    //...
    ];
  }}
/>

@Aaronphy Aaronphy closed this as completed Mar 3, 2021
@baixiaosh
Copy link

图片目前只能一次粘贴上传一张呢

@pd4d10
Copy link
Owner

pd4d10 commented Mar 18, 2021

例子写错了,已更新,应该是返回一个 Array,可以传多张,顺序 files 中的与一致。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants