Replies: 1 comment 1 reply
-
Can you add a comment with the formats you need in issue #2786 please? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
like electron
https://www.electronjs.org/docs/latest/api/clipboard#clipboardwritedata-type
const { clipboard } = require('electron')
clipboard.write({
text: 'test',
html: 'Hi',
rtf: '{\rtf1\utf8 text}',
bookmark: 'a title'
})
console.log(clipboard.readText())
// 'test'
console.log(clipboard.readHTML())
// Hi
console.log(clipboard.readRTF())
// '{\rtf1\utf8 text}'
console.log(clipboard.readBookmark())
// { title: 'a title', url: 'test' }
Beta Was this translation helpful? Give feedback.
All reactions