Code mirror does not use a simple text area for input. If you use a text area widget to edit the tiddler or switch off code mirror you may not have any problem.
If this is the case you can construct a different process for pasting and then edit with code mirror.
Regards
Toby