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