From c1ea8a321b788ee5d1d16ccfa0fc1f4dd373625a Mon Sep 17 00:00:00 2001 From: Zeno Rocha Date: Tue, 7 Feb 2017 23:59:07 -0800 Subject: [PATCH] Adds documentation about #355 --- index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.html b/index.html index 08a4577..b29e630 100644 --- a/index.html +++ b/index.html @@ -210,6 +210,8 @@ clipboard.destroy();

The good news is that clipboard.js gracefully degrades if you need to support older browsers. All you have to do is show a tooltip saying Copied! when success event is called and Press Ctrl+C to copy when error event is called because the text is already selected.

+ +

You can also check if clipboard.js is supported or not by running Clipboard.isSupported(), that way you can hide copy/cut buttons from the UI.