- From: snianu <notifications@github.com>
- Date: Tue, 18 Jan 2022 16:58:54 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/clipboard-apis/pull/158/review/856137570@github.com>
@snianu commented on this pull request.
> +
+ A [=/clipboard item=] has a <dfn>list of representations</dfn>, each <dfn>representation</dfn> with an associated <dfn for=representation>mime type</dfn> (a [=/MIME type=]) and <dfn for=representation>data</dfn> (a {{ClipboardItemData}}).
+
+ <p class=note>
+ In the example where the user copies a range of cells from a spreadsheet, it may be represented as an image (image/png), an HTML table (text/html), or plain text (text/plain).
+ </p>
+
+ Each of these [=/MIME type=]s describe a different [=representation=] of the same [=/clipboard item=] at different levels of fidelity and make the [=/clipboard item=] more consumable by target applications during paste.
+
+ <p class=note>
+ Making the range of cells available as an image will allow the user to paste the cells into a photo editing app, while the text/plain format can be used by text editor apps.
+ </p>
+
+ A [=/clipboard item=] can also optionally have a <dfn>presentation style</dfn> that helps distinguish whether apps "pasting" a [=/clipboard item=] should insert the contents of an appropriate [=representation=] inline at the point of paste or if it should be treated as an attachment.
+
+ Apps that support pasting only a single [=/clipboard item=] should use the first [=/clipboard item=].
Ack.
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/pull/158#discussion_r787268514
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/clipboard-apis/pull/158/review/856137570@github.com>
Received on Wednesday, 19 January 2022 00:59:06 UTC