mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 18:00:26 +00:00
Fix bug that was preventing pasting into edit textareas or input boxes
This commit is contained in:
parent
588c7cb07f
commit
45ee2b3048
@ -91,6 +91,7 @@ ImportWidget.prototype.handleDropEvent = function(event) {
|
||||
};
|
||||
|
||||
ImportWidget.prototype.handlePasteEvent = function(event) {
|
||||
if(["TEXTAREA","INPUT"].indexOf(event.srcElement.tagName) == -1) {
|
||||
var self = this,
|
||||
items = event.clipboardData.items;
|
||||
for(var t = 0; t<items.length; t++) {
|
||||
@ -112,6 +113,9 @@ ImportWidget.prototype.handlePasteEvent = function(event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
ImportWidget.prototype.openTiddler = function(title) {
|
||||
|
Loading…
Reference in New Issue
Block a user