Skip to content

Commit

Permalink
Ignore paste framework for input and textarea tags
Browse files Browse the repository at this point in the history
Addresses following issue - yabwe#1197
  • Loading branch information
nikhilaggarwal7787 authored May 3, 2017
1 parent de9371b commit e1775b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/extensions/paste.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@
if (!(MediumEditor.util.isKey(event, MediumEditor.util.keyCode.V) && MediumEditor.util.isMetaCtrlKey(event))) {
return;
}

if(event.target.tagName.toUpperCase() === 'INPUT' || event.target.tagName.toUpperCase() === 'TEXTAREA') {
return;
}

event.stopImmediatePropagation();

Expand Down

0 comments on commit e1775b8

Please sign in to comment.