-
-
Save iam-medvedev/4e348ad00d32bd4efea9b6499facc429 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.w3.org/TR/clipboard-apis/#reading-from-clipboard | |
document.addEventListener('paste', (e) => { | |
const text = e.clipboardData.getData('text/plain'); | |
const html = e.clipboardData.getData('text/html'); | |
handlePaste(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment