Skip to content

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

Open
ornic wants to merge 4 commits into
omichelsen:masterfrom
ornic:master
Open

Use clipboardData property of copy event to store HTML content#75
ornic wants to merge 4 commits into
omichelsen:masterfrom
ornic:master

Conversation

@ornic

@ornic ornic commented Nov 12, 2018

Copy link
Copy Markdown

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

@omichelsen

Copy link
Copy Markdown
Owner

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

@ornic

ornic commented Nov 14, 2018

Copy link
Copy Markdown
Author

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