From 62b8a83741e6eccfaead5ea7960c0400b6db5f4a Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Wed, 1 Sep 2021 09:56:17 +0100 Subject: [PATCH] Avoid MSIE crash Fixes #6014 --- core/modules/editor/factory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/editor/factory.js b/core/modules/editor/factory.js index 601ad2d64..d7e5e3969 100644 --- a/core/modules/editor/factory.js +++ b/core/modules/editor/factory.js @@ -332,7 +332,7 @@ function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) { }; EditTextWidget.prototype.handlePasteEvent = function(event) { - if(event.clipboardData.files.length) { + if(event.clipboardData && event.clipboardData.files && event.clipboardData.files.length) { event.preventDefault(); event.stopPropagation(); this.dispatchDOMEvent(this.cloneEvent(event,["clipboardData"]));