diff --git a/src/plugins/image/index.ts b/src/plugins/image/index.ts index 0f587f5..4587a4d 100644 --- a/src/plugins/image/index.ts +++ b/src/plugins/image/index.ts @@ -253,8 +253,9 @@ export const imageDialogState$ = Cell i.type.includes('image')) // Strip out the non-image bits + const cbPayload = Array.from(event.clipboardData?.items ?? []) + const isMixedPayload = cbPayload.some((item) => !item.type.includes('image')) + if (isMixedPayload) return false if (!cbPayload.length || cbPayload.length === 0) { return false