Document clipboard bookmark support
This commit is contained in:
parent
9fab641ecb
commit
a2ba778adc
1 changed files with 16 additions and 0 deletions
|
@ -75,6 +75,21 @@ Returns the content in the clipboard as RTF.
|
||||||
|
|
||||||
Writes the `text` into the clipboard in RTF.
|
Writes the `text` into the clipboard in RTF.
|
||||||
|
|
||||||
|
### `clipboard.readBookmark([type])`
|
||||||
|
|
||||||
|
* `type` String (optional)
|
||||||
|
|
||||||
|
Returns an Object containing `title` and `url` string keys representing the
|
||||||
|
bookmark in clipboard.
|
||||||
|
|
||||||
|
### `clipboard.writeBookmark(title, url[, type])`
|
||||||
|
|
||||||
|
* `title` String
|
||||||
|
* `url` String
|
||||||
|
* `type` String (optional)
|
||||||
|
|
||||||
|
Writes the `title` and `url` into the clipboard as a bookmark.
|
||||||
|
|
||||||
### `clipboard.clear([type])`
|
### `clipboard.clear([type])`
|
||||||
|
|
||||||
* `type` String (optional)
|
* `type` String (optional)
|
||||||
|
@ -112,6 +127,7 @@ Reads `data` from the clipboard.
|
||||||
* `html` String
|
* `html` String
|
||||||
* `image` [NativeImage](native-image.md)
|
* `image` [NativeImage](native-image.md)
|
||||||
* `rtf` String
|
* `rtf` String
|
||||||
|
* `bookmark` String - The title of the url at `text`.
|
||||||
* `type` String (optional)
|
* `type` String (optional)
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue