Adds documentation about #355

This commit is contained in:
Zeno Rocha 2017-02-07 23:59:07 -08:00
parent ceb5df2646
commit c1ea8a321b

View File

@ -210,6 +210,8 @@ clipboard.destroy();</code></pre>
</ul>
<p>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 <code>Copied!</code> when <code>success</code> event is called and <code>Press Ctrl+C to copy</code> when <code>error</code> event is called because the text is already selected.</p>
<p>You can also check if clipboard.js is supported or not by running <code>Clipboard.isSupported()</code>, that way you can hide copy/cut buttons from the UI.</p>
</main>
<footer class="footer gradient text-center">