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

外部链接图片上传服务器功能 #1438

Closed
yanyuepeng opened this issue Jul 21, 2023 · 3 comments
Closed

外部链接图片上传服务器功能 #1438

yanyuepeng opened this issue Jul 21, 2023 · 3 comments

Comments

@yanyuepeng
Copy link

yanyuepeng commented Jul 21, 2023

由于接口原因,外部链接图片上传直接通过linkToImgUrl写个url并不满足

能否像handler一样也支持自定义上传

@Vanessa219
Copy link
Owner

这个和上传不太一样,具体时那里不满足?相关代码在

if (node.__internal_object__.Parent.Type === 34 && src && src.indexOf("file://") === -1 &&

@yanyuepeng
Copy link
Author

yanyuepeng commented Jul 31, 2023

这个和上传不太一样,具体时那里不满足?相关代码在

if (node.__internal_object__.Parent.Type === 34 && src && src.indexOf("file://") === -1 &&

当前连上传文件接口都和文档中差异较大,需要自定义;外部链接只给个url的方式,还需新增或改动接口

就是能否在上传时提供一个方法,可以获取到图片的url或者base64,方便前端处理成本地文件再上传

或者是否可以借鉴下其他的相似编辑器 ,图片链接复制过来也直接转为base64,然后直接走之前的上传接口不是更加方便

@Vanessa219
Copy link
Owner

文档中应该是按照接口来的,你说的和文档差异较大的接口是?

base64 支持可具体查看 #1231

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

2 participants