Merge pull request #5219 from uinstinct/code-block-noneditable-2

do not allow to edit code block preview
This commit is contained in:
Patrick Erichsen 2025-04-17 21:41:49 -07:00 • committed by GitHub
commit 5be4908007
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -381,6 +381,7 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview(
const codeWrapState = uiConfig?.codeWrap ? "pre-wrap" : "pre";
return (
<StyledMarkdown
contentEditable='false'
fontSize={getFontSize()}
whiteSpace={codeWrapState}
bgColor={props.useParentBackgroundColor ? "" : vscBackground}