don't import into textarea elements either - fix #579

This commit is contained in:
Devin Howard 2016-08-10 10:43:18 +08:00
parent beb52bc471
commit a116137dcc

View file

@ -29,6 +29,7 @@ Metamaps.Import = {
$('body').bind('paste', function (e) {
if (e.target.tagName === 'INPUT') return
if (e.target.tagName === 'TEXTAREA') return
var text = e.originalEvent.clipboardData.getData('text/plain')