diff --git a/client/components/ui/VueTrix.vue b/client/components/ui/VueTrix.vue index 6a24f1d3..2687d934 100644 --- a/client/components/ui/VueTrix.vue +++ b/client/components/ui/VueTrix.vue @@ -31,7 +31,7 @@ - + @@ -316,6 +316,12 @@ export default { if (this.$refs.trix && this.$refs.trix.blur) { this.$refs.trix.blur() } + }, + handleAttachmentAdd(event) { + // Prevent pasting in images from the browser + if (!event.attachment.file) { + event.attachment.remove() + } } }, mounted() {