]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/drop-paste-handling.js
OIDC Userinfo: Fixed issues with validation logic from changes
[bookstack] / resources / js / wysiwyg / drop-paste-handling.js
index 33078cd1d5687b74fb877ef8dd2719dd4e0f59ff..9668692c81d1e162cf6f73d954c6cd307bd29735 100644 (file)
@@ -61,7 +61,7 @@ function paste(editor, options, event) {
                 editor.dom.replace(newEl, id);
             }).catch(err => {
                 editor.dom.remove(id);
-                window.$events.emit('error', options.translations.imageUploadErrorText);
+                window.$events.error(err?.data?.message || options.translations.imageUploadErrorText);
                 console.error(err);
             });
         }, 10);