Adding the option `filterOnPaste` that allows text to be handled before a `paste` event is completed