Skip to content
jshacks.dev

Tag

clipboard

1 post

Flat illustration of one event fanning out to several listeners, with the JavaScript, Google Chrome, Socket.io and Redis logos.
Browser

How to Handle Paste Events in JavaScript

Handle paste events in JavaScript with clipboardData: read text, HTML and files, strip formatting, paste images, sanitize input and keep undo working.

8 min read