1
0
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:
Jeremy Ruston 2013-04-05 13:57:55 +01:00
parent 588c7cb07f
commit 45ee2b3048

View File

@ -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) {