From 0ee95960fcf46b49c77d9029f25db0d2a71b2f11 Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Tue, 17 May 2022 18:18:19 +0530 Subject: [PATCH] read only editor home --- libs/remix-ui/editor/src/lib/remix-ui-editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx index 53292d2a82..cf701d780a 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx @@ -432,7 +432,7 @@ export const EditorUI = (props: EditorUIProps) => { language={editorModelsState[props.currentFile] ? editorModelsState[props.currentFile].language : 'text'} onMount={handleEditorDidMount} beforeMount={handleEditorWillMount} - options={{ glyphMargin: true }} + options={{ glyphMargin: true, readOnly: true }} defaultValue={defaultEditorValue} />