From 1da0f6600ef92def3b399044da46dfab6a573596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Rame=CC=81?= Date: Fri, 6 Mar 2026 19:18:04 +0100 Subject: [PATCH] wip fix preview of audio and video files --- .../docs/doc-editor/components/custom-blocks/AudioBlock.tsx | 3 +++ .../docs/doc-editor/components/custom-blocks/VideoBlock.tsx | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/AudioBlock.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/AudioBlock.tsx index 1a9aea07..127858fb 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/AudioBlock.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/AudioBlock.tsx @@ -94,6 +94,9 @@ const AudioToExternalHTML = ({ export const AudioBlock = createReactBlockSpec( createAudioBlockConfig, (config) => ({ + meta: { + fileBlockAccept: ['audio/*'], + }, render: (props) => , parse: audioParse(config), toExternalHTML: (props) => , diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/VideoBlock.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/VideoBlock.tsx index 7f775e6c..0140ad4e 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/VideoBlock.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/VideoBlock.tsx @@ -97,8 +97,12 @@ const VideoToExternalHTML = ({ export const VideoBlock = createReactBlockSpec( createVideoBlockConfig, (config) => ({ + meta: { + fileBlockAccept: ['video/*'], + }, render: (props) => , parse: videoParse(config), toExternalHTML: (props) => , + runsBefore: ['file'], }), );