readText

abstract external fun readText(): Promise<String>(source)

A promise that resolves with the content of the clipboard as plain text. Modeled after the W3C navigator.clipboard.readText API.