mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -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 />
|
||||
<ToolBar />
|
||||
<ReactCodeMirror
|
||||
editable={updateViewContextExtension !== null && isSynced && mayEdit}
|
||||
readOnly={updateViewContextExtension === null || !isSynced || !mayEdit}
|
||||
placeholder={placeholderText}
|
||||
extensions={extensions}
|
||||
width={'100%'}
|
||||
|
|
Loading…
Reference in a new issue