cherry-markdown
cherry-markdown copied to clipboard
[Bug Report]复制一个带链接的图片,黏贴到编辑器会出现两张图片
Prerequisites
- [ ] There isn't an existing issue that reports the same bug to avoid duplicates.
- [ ] The provided information offers a minimal reproducible example of the bug.
- [ ] For Q&A, please open a GitHub Discussion instead.
Describe the Bug
- 右键复制图片
- 到编辑器黏贴图片
- 会出现两张图片,一张是原链接的图片,一张是触发编辑器插入的图片
Reproduction Steps
No response
System Information
No response
Contributing
None
收到,应该是 https://github.com/Tencent/cherry-markdown/commit/9f46d5e667e44d96f546bd0064332a37b212f184 这个引入的,目的是粘贴时同时粘贴excel和图片,这就导致粘贴了多张图片。。我们再优化下
已提交到dev分支,做了取舍,如果剪切板里有html内容,就不再处理剪切板里的文件了
已提交到dev分支,做了取舍,如果剪切板里有html内容,就不再处理剪切板里的文件了
似乎可以单独对“右键复制图片”的场景做下支持,在这种场景下仍然粘贴文件而不是图片链接,我后续再优化下