mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-13 04:08:06 +00:00
Fix bug that was preventing pasting into edit textareas or input boxes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user