Remove buffers option since only a single is supported

This commit is contained in:
Kevin Sawicki 2017-05-22 13:49:26 -07:00
parent 8f35afd941
commit 5adf9c47fc
2 changed files with 1 additions and 19 deletions

View file

@ -173,17 +173,10 @@ Writes the `buffer` into the clipboard as `format`.
* `image` [NativeImage](native-image.md) (optional)
* `rtf` String (optional)
* `bookmark` String (optional) - The title of the url at `text`.
* `buffers` {[format: String]: Buffer} (optional) _Experimental_ - The buffers for each format you want to write
* `type` String (optional)
```javascript
const {clipboard} = require('electron')
clipboard.write({
text: 'test',
html: '<b>test</b>',
buffers: {
'com.adobe.pdf': pdfData
}
})
clipboard.write({text: 'test', html: '<b>test</b>'})
```
Writes `data` to the clipboard.