Skip to content

ElectronClipboard.writeRTF method

ElectronClipboard › writeRTF

Unofficial

Writes text to the clipboard as RTF.

Signature:

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

Parameters:

Parameter Type Description
text string The RTF content.
type? "clipboard" | "selection" | undefined The clipboard type.

Returns: void