- From: Thomas Olsson <notifications@github.com>
- Date: Thu, 11 Jul 2019 06:31:26 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 11 July 2019 13:31:49 UTC
I get the impression here https://w3c.github.io/clipboard-apis/#reading-from-clipboard that the clipboard format image/svg+xml should be available when reading a data transfer object in the paste event. But I cannot get this to work. I have verified on Windows that there is indeed an image/svg+xml format on the clipboard, but I cannot see any traces of this when inspecting the clipboardData object. document.addEventListener('paste', async function (event) { event.preventDefault(); console.log(event.clipboardData.types); let clipText = event.clipboardData.getData("image/svg+xml"); console.log(clipText); } -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/issues/92
Received on Thursday, 11 July 2019 13:31:49 UTC