Skip to content

Commit a28d1a1

Browse files
authored
fix html clipboard issue (only copy text/plain) (#2579)
1 parent 6420ae9 commit a28d1a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/app/view/codeeditor/codeeditor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export function CodeEditor({ blockId, text, language, fileName, readonly, onChan
158158
opts.stickyScroll.enabled = stickyScrollEnabled;
159159
opts.wordWrap = wordWrap ? "on" : "off";
160160
opts.fontSize = fontSize;
161+
opts.copyWithSyntaxHighlighting = false;
161162
return opts;
162163
}, [minimapEnabled, stickyScrollEnabled, wordWrap, fontSize, readonly]);
163164

0 commit comments

Comments
 (0)