

什麼是 paste-rich?
Handling paste events in the browser is deceptively complex. Screenshots paste as image/png blobs. Word documents include both HTML and plain text. File explorers inject DataTransferItem lists. Every app — Notion clones, WYSIWYG editors, comment boxes — ends up writing its own clipboardData parsing from scratch. paste-rich normalizes paste events into predictable types — image, file, HTML, or text — in 3 lines. Zero dependencies. One callback, one predictable shape: { type, data, files }.
截圖
?
還沒有評論,來搶沙發吧!
X 上關於 paste-rich 的真實討論
去 X 發文



