From e029ad49297fd1815036ecfaa19d6a491a6cc469 Mon Sep 17 00:00:00 2001 From: Felix Wu Date: Tue, 10 Apr 2018 16:28:11 +0200 Subject: [PATCH 1/4] Update copyToClipboard.md --- snippets/copyToClipboard.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snippets/copyToClipboard.md b/snippets/copyToClipboard.md index eee6dccfb..e755456fe 100644 --- a/snippets/copyToClipboard.md +++ b/snippets/copyToClipboard.md @@ -1,5 +1,7 @@ ### copyToClipboard +> **:warning: This is easily achievable by using the new Async Clipboard Api, which is still experimental by now but should be used in the future instead of this snippet. Find out more about it [here](https://github.com/w3c/clipboard-apis/blob/master/explainer.adoc#writing-to-the-clipboard).** + Copy a string to the clipboard. Only works as a result of user action (i.e. inside a `click` event listener). Create a new `