From 32e57fa1c5eb4f4f07917d5d848c8d959ba48cc2 Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Thu, 28 May 2026 15:08:19 +0400 Subject: [PATCH] Revert "Studio: render embedded images in DOCX preview" This reverts commit f4b34f71c55c8006a48c2aa62a097f05627caad0. --- .../src/features/rag/components/preview-docx-view.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/studio/frontend/src/features/rag/components/preview-docx-view.tsx b/studio/frontend/src/features/rag/components/preview-docx-view.tsx index ab3abbc930..e039c90cf5 100644 --- a/studio/frontend/src/features/rag/components/preview-docx-view.tsx +++ b/studio/frontend/src/features/rag/components/preview-docx-view.tsx @@ -26,20 +26,14 @@ export const PreviewDocxView: FC<{ target: PreviewTarget; blob: Blob }> = ({ void renderAsync(blob, offscreen, undefined, { inWrapper: true, ignoreLastRenderedPageBreak: true, - // Inline images as base64 data: URIs rather than blob: URLs. - // DOMPurify drops blob: from img src, so blob-backed images would - // vanish after sanitize; data: URIs survive (see ADD_DATA_URI_TAGS). - useBase64URL: true, }) .then(() => { if (cancelled || !ref.current) return; // Keep