Note that there are some explanatory texts on larger screens.

plurals
  1. POWill there ever be an HTML5 Clipboard API?
    primarykey
    data
    text
    <p>I'm frustrated with how far behind other standard web APIs we are with clipboard access.</p> <p>I'm working on a webapp that lets you draw and edit SVG graphics in the browser. The File API lets me load and read an SVG file completely client-side and the SVG API obviously lets me display SVG graphics.</p> <p>But it's impossible to get anything I draw out of the browser and paste it into, say, Photoshop, like you can when you copy something in Illustrator.</p> <p>The W3C denies the ability to manipulate copy events on the grounds of security:</p> <blockquote> <p>Enabling authors to change what is copied by a user, or to make an automated copy of something that was never selected and allowing unrestricted calls to paste information can raise various security and privacy concerns.</p> <p>An example scenario of a problem is where a user selects a link and copies it, but a different link is copied to the clipboard. The effect of this can range from an unexpected result on pasting to an attempted "phishing" attack.</p> </blockquote> <p><em>Source: <a href="http://www.w3.org/TR/clipboard-apis/#other-security-and-privacy-considerations" rel="nofollow noreferrer">http://www.w3.org/TR/clipboard-apis/#other-security-and-privacy-considerations</a></em></p> <p>Yet geolocation, which is just as much of a security/privacy consideration, is being supported by the newest browsers with a simple permissions dialog.</p> <p><img src="https://i.imgur.com/2xjT1RA.png" alt="Geolocation permissions dialog"></p> <p>Why can't we have the same thing for copying to the clipboard? It could even be restricted to require a CTRL+C event, to avoid abuse.</p> <blockquote> <p>"so-and-so.com wants to control the data you're copying. [Allow] [Deny]"</p> </blockquote> <p>Users could allow it once for a webapp they trust, and get more out of it forever. And developers could do more exciting things with the web.</p> <p>The recent adoption of <a href="https://stackoverflow.com/questions/6219197/how-to-manage-image-pasting-from-clipboard-in-html5">paste capturing</a> gives me some hope. I absolutely love what I can do with this on <a href="http://imgur.com" rel="nofollow noreferrer">imgur</a>, for example. (Try copying an image in your OS and pasting it on the homepage of imgur).</p> <p>Is there any chance of what I described becoming possible for copying? Is it being worked on at all?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload