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

[Bug Report]复制一个带链接的图片,黏贴到编辑器会出现两张图片 #681

Closed
3 tasks
zhiqin520 opened this issue Jan 9, 2024 · 3 comments
Closed
3 tasks
Labels
bug Something isn't working

Comments

@zhiqin520
Copy link

Prerequisites

Describe the Bug

  1. 右键复制图片
    copy
  2. 到编辑器黏贴图片
    paste
  3. 会出现两张图片,一张是原链接的图片,一张是触发编辑器插入的图片

Reproduction Steps

No response

System Information

No response

Contributing

None

@zhiqin520 zhiqin520 added the bug Something isn't working label Jan 9, 2024
@sunsonliu
Copy link
Collaborator

收到,应该是 9f46d5e 这个引入的,目的是粘贴时同时粘贴excel和图片,这就导致粘贴了多张图片。。我们再优化下

@sunsonliu
Copy link
Collaborator

已提交到dev分支,做了取舍,如果剪切板里有html内容,就不再处理剪切板里的文件了

@sunsonliu
Copy link
Collaborator

已提交到dev分支,做了取舍,如果剪切板里有html内容,就不再处理剪切板里的文件了

似乎可以单独对“右键复制图片”的场景做下支持,在这种场景下仍然粘贴文件而不是图片链接,我后续再优化下

jiawei686 added a commit that referenced this issue Feb 29, 2024
* dev:
  chore(release): v0.8.39
  feat(client): add file right-click menu to `*.md` and directly read file content (#717)
  fix: #461 修复全屏时编辑区和预览区中间分割线拖拽位置错位的问题
  fix: #681 修复粘贴图片会出现两张图片的情况
  fix: #681 修复粘贴图片会出现两张图片的情况
  fix: #710 修复粘贴多个文件时只能上传一个文件的问题
  feat: #707 提供滚动到对应锚点的api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants