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

Copy+paste from Word into editor pastes image instead of text (Chrome) #2222

Closed
RyanV opened this issue Aug 6, 2018 · 3 comments
Closed

Comments

@RyanV
Copy link
Contributor

RyanV commented Aug 6, 2018

Steps for Reproduction

  1. Open https://codepen.io/anon/pen/WKKLmO?editors=1111
  2. Open FooDoc.docx
  3. In FooDoc.docx, highlight text "foo"
  4. In Editor, paste contents

Expected behavior:
The text "foo" should be pasted into the editor

Actual behavior:
Chrome - An image is pasted into the editor
Screen Shot

Platforms:
MacOS Sierra 10.12.6
Chrome 68.0.3440.84
Firefox Quantum 61.0.1
Safari 11.1.1
Microsoft Word v15.38

Version:
2.0.0-dev.2


Pasting an image seems to only be an issue with Chrome of the 3 browsers I tested this in.
The issue stems from these lines added in 2.0:
https://github.com/quilljs/quill/blob/ae22be5ac37a4ca62e22ff4866b4c455c2ec9d23/modules/clipboard.js#L137-L142
When copy pasting from Word into Chrome, the clipboard data actually includes a file which is a picture of the text content.

@jhchen
Copy link
Member

jhchen commented Aug 9, 2018

Fixed in #2227

@jhchen jhchen closed this as completed Aug 9, 2018
@flyseamomo
Copy link

paste image and text together is not work

1 similar comment
@rodrigoventuri123
Copy link

paste image and text together is not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants