Specify custom behavior on paste event.