--- layout: docs title: Clipboard edit_url: "https://github.com/nylas/N1/blob/master/src/clipboard.coffee" ---
Represents the clipboard used for copying and pasting in Atom.
An instance of this class is always available as the atom.clipboard
global.
Write the given text to the clipboard.
The metadata associated with the text is available by calling readWithMetadata.
Argument | Description |
---|---|
text |
The String to store. |
metadata |
The additional info to associate with the text. |
Read the text from the clipboard.
Return Values |
---|
Returns a String. |
Read the text from the clipboard and return both the text and the associated metadata.
Return Values |
---|
Returns an Object with the following keys: |