mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 17:50:57 -05:00
fix(frontend): readOnly permits codemirror select text
Signed-off-by: Avinash <avinash.kumar.cs92@gmail.com>
This commit is contained in:
parent
e8c959268a
commit
09aef381c1
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ export const EditorPane: React.FC<EditorPaneProps> = ({ scrollState, onScroll, o
|
||||||
<MaxLengthWarning />
|
<MaxLengthWarning />
|
||||||
<ToolBar />
|
<ToolBar />
|
||||||
<ReactCodeMirror
|
<ReactCodeMirror
|
||||||
editable={updateViewContextExtension !== null && isSynced && mayEdit}
|
readOnly={updateViewContextExtension === null || !isSynced || !mayEdit}
|
||||||
placeholder={placeholderText}
|
placeholder={placeholderText}
|
||||||
extensions={extensions}
|
extensions={extensions}
|
||||||
width={'100%'}
|
width={'100%'}
|
||||||
|
|
Loading…
Reference in a new issue