Clipboard
The nova.clipboard
global object is used to read and write text to the user’s clipboard. This API requires that the extension declare the clipboard
entitlement.
Added in Nova 1.2.
Methods
readText()
Returns a Promise
object that resolves to the current text on the user’s clipboard. If the data on the clipboard is not text, or there is no data on the clipboard, the promise resolves to an empty string.
writeText(text)
Writes text to the user’s pasteboard, replacing its contents. Returns a Promise
that resolves when writing is complete.