This object allows you to have access to the system's clipboard. Under Linux you also have access to the selection buffer.
Constructor function.
var myObject = new Clipboard();
var myObject = new Clipboard(mode);
Create a Clipboard object.
var myObject = new Clipboard();
Create a Clipboard object to the selection buffer.
var myObject = new Clipboard(Clipboard.Selection);
Set the clipboard mode.
myObject.setMode(mode);
Sets the clipboard text.
myObject.setText(text);
Sets the clipboard image.
myObject.setImage(image);
Returns the content of the clipboard as text.
myObject.text();
Returns the content of the clipboard as an image.
myObject.image();
Returns the current clipboard content type.
myObject.dataType();
The clipboard's content as text. (string)
The clipboard's content as an image. (Image)
Clipboard mode.
The clipboard's data type.