From 759c58d3f7561b6d56b61fa78ec6880f10796fa8 Mon Sep 17 00:00:00 2001 From: Vito0912 <86927734+Vito0912@users.noreply.github.com> Date: Wed, 4 Jun 2025 16:38:01 +0200 Subject: [PATCH] remove any attachment --- client/components/ui/VueTrix.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/components/ui/VueTrix.vue b/client/components/ui/VueTrix.vue index 2687d934..0836df15 100644 --- a/client/components/ui/VueTrix.vue +++ b/client/components/ui/VueTrix.vue @@ -318,10 +318,8 @@ export default { } }, handleAttachmentAdd(event) { - // Prevent pasting in images from the browser - if (!event.attachment.file) { - event.attachment.remove() - } + // Prevent pasting in images/any files from the browser + event.attachment.remove() } }, mounted() {