set readonly on mobile devices

This commit is contained in:
Luck
2022-01-27 23:26:16 +00:00
parent 7d54be07d9
commit ed7f8e5bdd
5 changed files with 28 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ export default function EditorTextArea({
theme,
language,
fontSize,
readOnly,
}) {
const [editor, setEditor] = useState();
const [monaco, setMonaco] = useState();
@@ -70,6 +71,7 @@ export default function EditorTextArea({
wordWrap: true,
renderLineHighlight: 'none',
renderValidationDecorations: false,
readOnly,
}}
beforeMount={beforeMount}
onMount={onMount}