opentiny / opentiny/tiny-editor

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

Open
#72 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug good first issue
Dominant language
TypeScript
Stars
535
Forks
71
Avg merge
6h 50m
Merged PRs (30d)
2

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked official example and reproduce the issue on macOS using Word content, with uploadOption.imageUploadToServer set to true and false. Trace the editor's paste handling and compare text-with-formatting and image paste results. Done means Word text remains text with styles while pasted images still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.