From 47a8a7ae82b18af2145144b003de5d020fac1e68 Mon Sep 17 00:00:00 2001 From: sawka Date: Thu, 20 Nov 2025 10:23:37 -0800 Subject: [PATCH] fix html clipboard issue (only copy text/plain) --- frontend/app/view/codeeditor/codeeditor.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/app/view/codeeditor/codeeditor.tsx b/frontend/app/view/codeeditor/codeeditor.tsx index 13c810d6a0..c77c4d9b7c 100644 --- a/frontend/app/view/codeeditor/codeeditor.tsx +++ b/frontend/app/view/codeeditor/codeeditor.tsx @@ -158,6 +158,7 @@ export function CodeEditor({ blockId, text, language, fileName, readonly, onChan opts.stickyScroll.enabled = stickyScrollEnabled; opts.wordWrap = wordWrap ? "on" : "off"; opts.fontSize = fontSize; + opts.copyWithSyntaxHighlighting = false; return opts; }, [minimapEnabled, stickyScrollEnabled, wordWrap, fontSize, readonly]);