diff --git a/app/javascript/dashboard/components/widgets/WootWriter/FullEditor.vue b/app/javascript/dashboard/components/widgets/WootWriter/FullEditor.vue index ab4be9342..754182207 100644 --- a/app/javascript/dashboard/components/widgets/WootWriter/FullEditor.vue +++ b/app/javascript/dashboard/components/widgets/WootWriter/FullEditor.vue @@ -120,7 +120,6 @@ export default { if (fileUrl) { this.onImageUploadStart(fileUrl); } - useAlert(this.$t('HELP_CENTER.ARTICLE_EDITOR.IMAGE_UPLOAD.SUCCESS')); } catch (error) { useAlert(this.$t('HELP_CENTER.ARTICLE_EDITOR.IMAGE_UPLOAD.ERROR')); } @@ -173,6 +172,18 @@ export default { blur: () => { this.onBlur(); }, + paste: (view, event) => { + const data = event.clipboardData.files; + if (data.length > 0) { + data.forEach(file => { + // Check if the file is an image + if (file.type.includes('image')) { + this.uploadImageToStorage(file); + } + }); + event.preventDefault(); + } + }, }, }); },