cherry-markdown
cherry-markdown copied to clipboard
[Docs]问下有没有文章图片自动转存的功能
Prerequisites
- [ ] There isn't an existing issue with the same question or request to avoid duplicates.
Issue Type
Question
Description of the Problem or Idea
比如我把一片文章粘贴到这个编辑器里,他会自动把文章中的图片附件存到本地服务上(上传接口自己实现的),然后自动改用本地服务上的图片地址,而不是用图片的原地址,这样就不用怕以后图片的原地址失效了.其实就是类似vditor的linkToImgUrl的功能
Further Information
No response
Contributing
None
感谢反馈,这是一个很好的idear,不过对于外部的图片,js会因为跨域问题拿不到这个图片的base64数据。见过一种做法是在后台实现外部图片下载的功能,下载完成后再通过正则把Markdown里的图片地址替换成自己服务提供的图片地址。可以考虑这种实现方式哈。