mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Update browser support section. Safari 10 is now supported (#313)
This commit is contained in:

committed by
Zeno Rocha

parent
90e4816bb3
commit
86f15b1f0a
Binary file not shown.
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 24 KiB |
@ -200,15 +200,15 @@ clipboard.destroy();</code></pre>
|
||||
</li>
|
||||
<li>
|
||||
<img src="assets/images/safari.png" width="64" height="64" alt="Safari logo">
|
||||
<p>Safari ✘</p>
|
||||
<p>Safari 10</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>Although copy/cut operations with <a href="https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand">execCommand</a> aren't supported on Safari yet (including mobile), it gracefully degrades because <a href="https://developer.mozilla.org/en-US/docs/Web/API/Selection">Selection</a> is supported.</p>
|
||||
<p>Although copy/cut operations with <a href="https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand">execCommand</a> aren't supported on Safari < 10 or Safari Mobile on iOS < 10, it gracefully degrades because <a href="https://developer.mozilla.org/en-US/docs/Web/API/Selection">Selection</a> is supported.</p>
|
||||
|
||||
<p>That means you can 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>For a live demonstration, open this site on Safari.</p>
|
||||
<p>For a live demonstration, open this site on Safari < 10 or Safari Mobile on iOS < 10.</p>
|
||||
</main>
|
||||
|
||||
<footer class="footer gradient text-center">
|
||||
|
Reference in New Issue
Block a user