Hi
I’m trying to get the clipboard data when I click the button on the miro plugin.
I used this code for get clipboard data.
document.addEventListener('paste', event => createStickyNote(event))
function createStickyNote(event) {
var text = e.clipboardData.getData('Text');
console.log(text)
}
It works when I press Ctrl+V.
but I want to get the clipboard data when I click the button.
Please let me know your ideas,
Thank you