Mention using fallback text when writing bookmarks on Windows
This commit is contained in:
parent
c2c48c4079
commit
cae15ad6b5
1 changed files with 11 additions and 0 deletions
|
@ -90,6 +90,17 @@ bookmark is unavailable.
|
|||
|
||||
Writes the `title` and `url` into the clipboard as a bookmark.
|
||||
|
||||
**Note:** Most apps on Windows don't support pasting bookmarks into them so
|
||||
you can use `clipboard.write` to write both a bookmark and fallback text to the
|
||||
clipboard.
|
||||
|
||||
```js
|
||||
clipboard.write({
|
||||
text: 'http://electron.atom.io',
|
||||
bookmark: 'Electron Homepage'
|
||||
})
|
||||
```
|
||||
|
||||
### `clipboard.clear([type])`
|
||||
|
||||
* `type` String (optional)
|
||||
|
|
Loading…
Reference in a new issue