diff --git a/apps/opik-frontend/src/components/shared/CodeHighlighter/CodeHighlighter.tsx b/apps/opik-frontend/src/components/shared/CodeHighlighter/CodeHighlighter.tsx index d697ce6df9..b4d00d22d4 100644 --- a/apps/opik-frontend/src/components/shared/CodeHighlighter/CodeHighlighter.tsx +++ b/apps/opik-frontend/src/components/shared/CodeHighlighter/CodeHighlighter.tsx @@ -48,6 +48,7 @@ const CodeHighlighter: React.FunctionComponent = ({ PLUGINS_MAP[language], EditorView.lineWrapping, EditorState.readOnly.of(true), + EditorView.editable.of(false), ]} /> diff --git a/apps/opik-frontend/src/components/shared/SyntaxHighlighter/SyntaxHighlighter.tsx b/apps/opik-frontend/src/components/shared/SyntaxHighlighter/SyntaxHighlighter.tsx index 1e6377cbcd..2c2bb223c2 100644 --- a/apps/opik-frontend/src/components/shared/SyntaxHighlighter/SyntaxHighlighter.tsx +++ b/apps/opik-frontend/src/components/shared/SyntaxHighlighter/SyntaxHighlighter.tsx @@ -61,6 +61,7 @@ const SyntaxHighlighter: React.FunctionComponent = ({ languageExtension, EditorView.lineWrapping, EditorState.readOnly.of(true), + EditorView.editable.of(false), ]} />