From cae15ad6b574e8954da8ae2d32951c1b56b35957 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 21 Sep 2016 10:28:37 -0700 Subject: [PATCH] Mention using fallback text when writing bookmarks on Windows --- docs/api/clipboard.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/api/clipboard.md b/docs/api/clipboard.md index bc7e15ee09b0..9c1d6efb8927 100644 --- a/docs/api/clipboard.md +++ b/docs/api/clipboard.md @@ -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)