mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
Mention using fallback text when writing bookmarks on Windows
This commit is contained in:
@@ -90,6 +90,17 @@ bookmark is unavailable.
|
|||||||
|
|
||||||
Writes the `title` and `url` into the clipboard as a bookmark.
|
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])`
|
### `clipboard.clear([type])`
|
||||||
|
|
||||||
* `type` String (optional)
|
* `type` String (optional)
|
||||||
|
|||||||
Reference in New Issue
Block a user