mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-06 22:04:19 +00:00
parent
c9c5d4cf79
commit
62b8a83741
@ -332,7 +332,7 @@ function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
EditTextWidget.prototype.handlePasteEvent = function(event) {
|
EditTextWidget.prototype.handlePasteEvent = function(event) {
|
||||||
if(event.clipboardData.files.length) {
|
if(event.clipboardData && event.clipboardData.files && event.clipboardData.files.length) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
this.dispatchDOMEvent(this.cloneEvent(event,["clipboardData"]));
|
this.dispatchDOMEvent(this.cloneEvent(event,["clipboardData"]));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user