diff --git a/src/editor/extensions/ext-opensave/ext-opensave.js b/src/editor/extensions/ext-opensave/ext-opensave.js index 19f7f2f6..4ab3d7ba 100644 --- a/src/editor/extensions/ext-opensave/ext-opensave.js +++ b/src/editor/extensions/ext-opensave/ext-opensave.js @@ -44,6 +44,9 @@ export default { * @returns {void} */ const importImage = (e) => { + // only import files + if (!e.dataTransfer.types.includes('Files')) return + $id('se-prompt-dialog').title = this.i18next.t('notification.loadingImage') $id('se-prompt-dialog').setAttribute('close', false) e.stopPropagation()