From ebd49f05a8d82eccf9f40de2f5d92655426397d0 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Fri, 28 Feb 2025 11:23:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8(frontend)=20block=20click=20on=20u?= =?UTF-8?q?nsafe=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want to prevent the user to open unsafe images in the browser. We blocked the click on the images. To download them, the user will have to use the download button. --- .../apps/impress/src/features/docs/doc-editor/styles.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/styles.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/styles.tsx index 1eb356f9..2aed7a93 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-editor/styles.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-editor/styles.tsx @@ -6,6 +6,10 @@ export const cssEditor = (readonly: boolean) => css` & .ProseMirror { height: 100%; + img.bn-visual-media[src*='-unsafe'] { + pointer-events: none; + } + .bn-side-menu[data-block-type='quote'] { height: 46px; }