nsIClipboardHelper

helper service for common uses of nsIClipboard.

Methods

copyStringToClipboard(aString, aClipboardID, aDoc)

copy string to given clipboard

Parameters

aString, the string to copy to the clipboard
aDoc, the source document for the string, if available
aClipboardID, the ID of the clipboard to copy to (eg. kSelectionClipboard -- see nsIClipboard.idl)

copyString(aString, aDoc)

copy string to (default) clipboard

Parameters

aString, the string to copy to the clipboard
aDoc, the source document for the string, if available