mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
Add readRtf feature with appropriate spec test. Docs updated as well.
This commit is contained in:
@@ -61,9 +61,17 @@ Returns the content in the clipboard as a [NativeImage](native-image.md).
|
||||
|
||||
Writes `image` to the clipboard.
|
||||
|
||||
### `clipboard.writeRtf(text)`
|
||||
### `clipboard.readRtf([type])`
|
||||
|
||||
* `type` String (optional)
|
||||
|
||||
Returns the content in the clipboard as RTF.
|
||||
|
||||
|
||||
### `clipboard.writeRtf(text[, type])`
|
||||
|
||||
* `text` String
|
||||
* `type` String (optional)
|
||||
|
||||
Writes the `text` into the clipboard in RTF.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user