diff --git a/src-web/components/core/Editor/Editor.tsx b/src-web/components/core/Editor/Editor.tsx index 7600640f..c9333b43 100644 --- a/src-web/components/core/Editor/Editor.tsx +++ b/src-web/components/core/Editor/Editor.tsx @@ -233,7 +233,9 @@ function getExtensions({ keymap.of(singleLine ? defaultKeymap.filter((k) => k.key !== 'Enter') : defaultKeymap), ...(singleLine ? [singleLineExt()] : []), ...(!singleLine ? [multiLineExtensions] : []), - ...(readOnly ? [EditorState.readOnly.of(true)] : []), + ...(readOnly + ? [EditorState.readOnly.of(true), EditorView.contentAttributes.of({ tabindex: '-1' })] + : []), ...(singleLine ? [ EditorView.domEventHandlers({