From a2ba778adcf6b776bc7122ba174a611c498990c2 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 24 Jun 2016 15:20:49 -0700 Subject: [PATCH] Document clipboard bookmark support --- docs/api/clipboard.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/api/clipboard.md b/docs/api/clipboard.md index 47fd0564ac98..ecd73a71ccb2 100644 --- a/docs/api/clipboard.md +++ b/docs/api/clipboard.md @@ -75,6 +75,21 @@ Returns the content in the clipboard as 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])` * `type` String (optional) @@ -112,6 +127,7 @@ Reads `data` from the clipboard. * `html` String * `image` [NativeImage](native-image.md) * `rtf` String + * `bookmark` String - The title of the url at `text`. * `type` String (optional) ```javascript