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"]));