opentiny / opentiny/tiny-editor
🐛 [Bug]: macOS 粘贴 word 文档内容变成了图片
Open
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
- 从 word 文档复制文字内容
- 粘贴到
fluent-editor - 所有文字变成了一张图片
当uploadOption.imageUploadToServer为true时(为了可以直接粘贴图片), 再粘贴 word 中复制的文字内容时, 文字内容都变成了图片,uploadOption.imageUploadToServer为false时, 可以正常粘贴 word 文字, 但无法粘贴图片了, Quill 本身没有这个 bug
What is expected
粘贴 word 中复制的文字内容时保留文字内容和样式, 当粘贴图片时可以粘贴图片
What is actually happening
- 当
uploadOption.imageUploadToServer为true时, 粘贴 word 中复制的文字内容所有文字变成了一张图片
;
uploadOption.imageUploadToServer为false时, 可以正常粘贴 word 文字, 但却无法粘贴图片了
What is your project name
editor
Any additional comments (optional)
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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