The
read()
method of theClipboard
interface requests a copy of the clipboard’s contents, delivering the data to the returnedPromise
when the promise is resolved. UnlikereadText()
, theread()
method can return arbitrary data, such as images. This method can also return text.
Read data from clipboard.
but in UXP read() and readText() both return the same object with only text/plain
I’m trying to read image data from clipboard, is this a bug or am I doing something wrong?