I read this article about inserting images in Chrome and Firefox.
To reproduce, Firefox does not provide any information about the inserted image; the "paste" event handler receives a null clipboardData object.
To work, one puts the invisible div content in the DOM and always keeps it in focus, when the material is inserted, it starts a timeout that checks the contents of the invisible div to capture the image descriptor.
Is there a way to hack stuff with magic frames or is there something wrong instead of replacing textarea with a contenteditable div to get paste support in Firefox?
(note: Java and Flash solutions are out of the question)
javascript firefox
Sam Saffron Jan 04 '13 at 4:18 2013-01-04 04:18
source share