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

Use clipboardData property of copy event to store HTML content #75

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ornic
Copy link

@ornic ornic commented Nov 12, 2018

...and fall back to browser default on error.

@omichelsen
Copy link
Owner

What is the purpose of this rewrite? Is is solving a bug or improving functionality in some way?

@ornic
Copy link
Author

ornic commented Nov 14, 2018

With this Ctrl+V in (for example) Outlook mail editor will paste HTML, not code of HTML.

Without e.clipboardData.setData("text/html", str):
image

With e.clipboardData.setData("text/html", str)::
image

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

Successfully merging this pull request may close these issues.

2 participants