Skip to content

ElectronClipboard.writeRTF method

ElectronClipboard › writeRTF

Unofficial

Writes text to the clipboard as RTF.

Signature:

writeRTF(text: string, type?: 'clipboard' | 'selection'): void

Parameters:

ParameterTypeDescription
textstringThe RTF content.
type?'clipboard' | 'selection'The clipboard type.

Returns: void