소스 검색

fix editor mode

AykutSarac 3 년 전
부모
커밋
3cbdfeb09e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/containers/JsonEditor/index.tsx

+ 1 - 1
src/containers/JsonEditor/index.tsx

@@ -23,7 +23,6 @@ const aceOptions: IAceOptions = {
   tabSize: 2,
   showPrintMargin: false,
   wrap: true,
-  mode: "json",
 };
 
 const JsonEditor: React.FC = () => {
@@ -94,6 +93,7 @@ const JsonEditor: React.FC = () => {
       <ErrorContainer error={error} setError={setError} />
       <AceEditor
         height="100%"
+        mode="json"
         value={value}
         onChange={setValue}
         theme={editorTheme}