W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

[Clipboard API] Copy to clipboard

From: Joćo Eiras <joao.eiras@gmail.com>
Date: Mon, 05 Sep 2011 01:14:10 +0100
To: "public-webapps@w3.org" <public-webapps@w3.org>
Message-ID: <op.v1a6xwd9jz3wb9@coruscant>
Hi !

The spec for setData [1] states that this method when calling from a cut/copy event sets new data on the clipboard. Unfortunately, this is insufficient to implement the typical copy to clipboard button, or going even further, the clipboard toolbar with buttons for the 3 actions (copy, cut, paste) typically seen in text editors.

Perhaps the spec should somehow include a way for a webpage, or origin, to request the user more privileges accessing the clipboard ? But this could somehow be abused, therefore such solution should not give direct access to the system clipboard that easily.

[1] http://dev.w3.org/2006/webapi/clipops/clipops.html#widl-clipboardData-setData-boolean-DOMString-type-DOMString-data
Received on Monday, 5 September 2011 00:14:40 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:47 GMT