Add readRtf feature with appropriate spec test. Docs updated as well.
This commit is contained in:
parent
acd5d40ab0
commit
252b12be13
3 changed files with 28 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue