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]: macOS 粘贴 word 文档内容变成了图片 #72

Open
ihwf opened this issue Sep 18, 2024 · 3 comments
Open

🐛 [Bug]: macOS 粘贴 word 文档内容变成了图片 #72

ihwf opened this issue Sep 18, 2024 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@ihwf
Copy link

ihwf commented Sep 18, 2024

Version

latest

Link to minimal reproduction

官网示例

Step to reproduce

  1. 从 word 文档复制文字内容
  2. 粘贴到 fluent-editor
  3. 所有文字变成了一张图片
    uploadOption.imageUploadToServertrue 时(为了可以直接粘贴图片), 再粘贴 word 中复制的文字内容时, 文字内容都变成了图片, uploadOption.imageUploadToServerfalse 时, 可以正常粘贴 word 文字, 但无法粘贴图片了, Quill 本身没有这个 bug

What is expected

粘贴 word 中复制的文字内容时保留文字内容和样式, 当粘贴图片时可以粘贴图片

What is actually happening

  1. uploadOption.imageUploadToServertrue 时, 粘贴 word 中复制的文字内容所有文字变成了一张图片
    image;
  2. uploadOption.imageUploadToServerfalse 时, 可以正常粘贴 word 文字, 但却无法粘贴图片了

What is your project name

editor

Any additional comments (optional)

No response

@kagol kagol added the bug Something isn't working label Sep 19, 2024
@kagol
Copy link
Member

kagol commented Sep 21, 2024

@ihwf 没有复现你说的问题,我设置 uploadOption.imageUploadToServertrue 时( Demo ),粘贴 Word 文字内容是正常的。可否提供一个最小可复现 Demo?

另外如果你想上传图片到服务器,请参考以下 Demo:
上传图片到服务器

@kagol kagol closed this as completed Sep 21, 2024
@ihwf
Copy link
Author

ihwf commented Sep 23, 2024

Jietu20240923-140116-HD.mp4

补充个录屏, 打开的页面是你提供的 Demo ,再补充个系统信息MacOS 12.7.6 chrome 128

@ihwf
Copy link
Author

ihwf commented Sep 26, 2024

经测试是 macOS 下才会出现的 bug, 但是 Quill 本身没有这个 bug, 应该是 fluent-editor 自定义剪贴板的时候出的 bug

@ihwf ihwf changed the title 🐛 [Bug]: 粘贴 word 文档内容变成了图片 🐛 [Bug]: macOS 粘贴 word 文档内容变成了图片 Sep 27, 2024
@kagol kagol reopened this Oct 8, 2024
@kagol kagol added the good first issue Good for newcomers label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants