I'd like to create a custom paste event that would fire either input (FF) or onbeforepaste (IE). I've read pretty much all about creating custom events in mootools, still the event does not get fired in any of the browsers.
The extension (took the docs and the 'mousewheel' event as a reference):
Element.Events.paste = {
base: (Browser.Engine.trident) ? 'beforepaste' : 'input'
};
Call:
this.addEvent('paste', function() {... // 'this' is a textarea
It works fine when I use the non-mootools way (FF):
this.addEventListener('input', function() {...
So, what do I do wrong?