There is an event pastethat works for all pastes (including through the context menu or the editing menu) in an editable document, in Firefox since version 3.0, WebKit for several years (not sure about the version number), and IE since version 5.5. Adding an event handler pasteto the body element works in all of these browsers.
I’m afraid that I don’t have information about drag and drop events: in the editors I worked on, I had good reasons to explicitly disable drag and drop.
source
share