Reworked paste to force plain text mode when paste is done without using the keyboard.