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 gmail using IE11 adds junk #886

Closed
benbro opened this issue Aug 25, 2016 · 2 comments
Closed

copy&paste from gmail using IE11 adds junk #886

benbro opened this issue Aug 25, 2016 · 2 comments

Comments

@benbro
Copy link
Contributor

benbro commented Aug 25, 2016

[Describe the issue]
When I copy a message from gmail using IE11 to quill it adds junk before the actual message text.
It doesn't happen when I copy from gmail using Chrome.
I don't see the junk when pasting in notepad, notepad++ or in gmail.
I'm not sure if it's an actual issue so feel free to close it if it's something specific to old IE.

Steps for Reproduction

  1. Visit http://quilljs.com/
  2. Open gmail in IE11 on Windows 7
  3. Compose a new mail, type 'Test', select all (ctrl+a), and copy (ctrl+c).
  4. Paste the text in quill.

Expected behavior: [expected]
See only the word 'Test' in quill.

Actual behavior: [actual]
Several lines of text are added above the actual message. It starts with:

Inbox - [email protected] - Gmail     // <![CDATA[ var GM_START_TIME=(new Date).getTime();var GM_SUPPORTED_IE_VERSION="9.0";var
...

Platforms: [ex. Chrome 48 on Mac 10.11]
Chrome 52 on Windows 7.
(copy from gmail using IE11 on Windows 7).

Version: [version]
1.0.0-rc2

@benbro benbro changed the title copy&paste from gmail in IE11 adds junk copy&paste from gmail using IE11 adds junk Aug 25, 2016
@benbro
Copy link
Contributor Author

benbro commented Aug 26, 2016

Please note, I need to copy the text with IE11 to reproduce but Quill adds the CDATA part when pasting in all browsers (Chrome, Firefox). That's not an IE11 only issue.

I can't reproduce when I copy from a simple textarea,
http://codepen.io/anon/pen/PzAVdA

I can't reproduce when I copy from a simple contenteditable
http://codepen.io/anon/pen/rLEPqy

I saw a similar issue when I copy text from the medium.js editor with IE11.
Quill tries to load arbitrary css files. Is this a security issue?

NetworkError: 404 Not Found - http://s.codepen.io/quill/medium.css
NetworkError: 404 Not Found - http://s.codepen.io/quill/fullembedgrid/prism.css
NetworkError: 404 Not Found - http://s.codepen.io/quill/fullembedgrid/docs.css

Steps for Reproduction

  1. Use IE11 and visit http://jakiestfu.github.io/Medium.js/docs/
  2. Scroll down to the demos. Type 'abc', select the text and copy (ctrl+c)
  3. Use Chrome or Firefox and visit http://quilljs.com/playground/
  4. Paste the text.

@benbro
Copy link
Contributor Author

benbro commented Aug 26, 2016

I also see the same issue when I copy with Edge on Windows 10:
Microsoft Edge 38.14393.0.0
Microsoft EdgeHTML 14.14393

@jhchen jhchen closed this as completed in 0c903eb Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants