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

Paste from MS Word on Chrome turns pasted content into an image? #553

Closed
snappa opened this issue Nov 9, 2020 · 11 comments
Closed

Paste from MS Word on Chrome turns pasted content into an image? #553

snappa opened this issue Nov 9, 2020 · 11 comments
Labels
Projects
Milestone

Comments

@snappa
Copy link

snappa commented Nov 9, 2020

If I paste content from a Microsoft Word document into the editor running on Chrome the content is turned into an image. This does not happen on Safari.

I'm wondering if there's a configuration option to disable this. I have been able to paste content into the editor using SHIFT+COMMAND+V and this pastes it in as text but all the formatting is gone and teaching my users to do anything with extra command sequences is not a great UX.

Any info on how to code around this problem would be appreciated.

@JiHong88
Copy link
Owner

@snappa I din't understand this mean "the content is turned into an image".
Please can you tell me more detail?

@snappa
Copy link
Author

snappa commented Nov 11, 2020

@snappa I din't understand this mean "the content is turned into an image".
Please can you tell me more detail?

Open a Microsoft Word document. Select some content that you want to paste into the sun editor. Right-click Copy or Command-c.
Click in the subeditor where you want to paste the content. Right-click Paste or Command-v to paste the content in.

The pasted in content is transformed to an image and not editable text.

@JiHong88
Copy link
Owner

@snappa I don't understand.
Did you mean a text is transformed to an image?
Can you show the content of Word?

@snappa
Copy link
Author

snappa commented Dec 12, 2020

Yes, the text is transformed into an image. Attached is a zip file containing 2 videos. One showing copy/paste from Word to the editor in Chrome using normal paste and the other is a copy paste of the same content but using "Paste and Match Style". Notice how the video titled "copy_paste_shows_image.mov" transforms the text pasted into an image.

copy_paste.zip

@JiHong88
Copy link
Owner

Sorry, for the late reply.😢
Where was the text copied from?

@snappa
Copy link
Author

snappa commented Dec 27, 2020

Sorry, for the late reply.😢
Where was the text copied from?

Microsoft Word

@JiHong88
Copy link
Owner

@snappa This issue is not reproduced.
Please tell me more about the test environment and method.

@snappa
Copy link
Author

snappa commented Dec 27, 2020

@snappa This issue is not reproduced.
Please tell me more about the test environment and method.

Sure. MacBook Pro, OS Catalina, 10.15.7, Microsoft Word for Mac, Version 16.41, Chrome Version 87.0.4280.88 (up to date), React 16.12.0. SunEditor React "suneditor-react": "^2.14.3".

I have the editor in an app running on Chrome on my Mac, I open a Word Doc, select the area to be copied and right-click "copy". I then just do a right-click "paste" into the editor and it transforms the text into an image. As I said earlier in this thread, if I click "Paste and Match Style" this works as expected, transforming the pasted word content into HTML text. If I just click "Paste" this is what causes the issue.

@JiHong88 JiHong88 added bug and removed discussion labels Dec 28, 2020
@JiHong88 JiHong88 added this to the 2.35.0 milestone Dec 28, 2020
@JiHong88
Copy link
Owner

This is a bug that I don't understand right now...
If we can't fix it in the next version, we'll let you know again.

@snappa
Copy link
Author

snappa commented Dec 29, 2020

This is a bug that I don't understand right now...
If we can't fix it in the next version, we'll let you know again.

Thank you. I traced it and tried working around it within the API and just couldn't get it to work.

@JiHong88 JiHong88 removed this from the 2.35.0 milestone Jan 17, 2021
@JiHong88 JiHong88 added this to To do in suneditor via automation Jan 17, 2021
@JiHong88 JiHong88 moved this from To do to In progress in suneditor Jan 21, 2021
@JiHong88 JiHong88 added this to the 2.35.1 milestone Jan 21, 2021
@JiHong88 JiHong88 moved this from In progress to Review in progress in suneditor Jan 21, 2021
suneditor automation moved this from Review in progress to Done Jan 21, 2021
@JiHong88
Copy link
Owner

The 2.35.1 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

NickyTope pushed a commit to isw-kudos/SunEditor that referenced this issue Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
suneditor
  
Done
Development

No branches or pull requests

2 participants