Skip to content

Paste from word doesn't work with images and texts together #363

@davidebaldassini

Description

@davidebaldassini

Describe the bug
I want to copy and paste a text (with at least one image) from Microsoft word. The output is not the same as in Word and the image is not pasted

Related repository

To Reproduce
Steps to reproduce the behavior:

  • Write a text in Microsoft Word with at least one image
  • Copy it
  • Paste it inside sunEditor

Expected behavior
See the pasted text identical to what written in Microsoft Word

Screenshots
If applicable, add screenshots to help explain your problem.

Code Sandbox Demo
Microsoft word:
image

SunEditor:
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome

Additional context
As you can see in the screenshot the image is not shown and the text is duplicated. Furthermore, if I copy and paste the image/text alone everything works as expected

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions