From d5196eefe3afe8da3da08c701edaa22b5e2789a9 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 `