Skip to content

Commit

Permalink
Update FileEditContainer.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kokofixcomputers authored Oct 26, 2024
1 parent c194596 commit 4449103
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import ErrorBoundary from '@/components/elements/ErrorBoundary';
import { encodePathSegments, hashToPath } from '@/helpers';
import { dirname } from 'path';
import { Editor } from '@monaco-editor/react';
import { MonacoMarkdownExtension } from 'monaco-markdown';
import { useMonacoEx } from 'monaco-editor-ex';
import CodemirrorEditor from '@/components/elements/CodemirrorEditor';
import tw from 'twin.macro';
Expand Down Expand Up @@ -194,6 +195,7 @@ export default () => {
onMount={(editor, monaco) => {
editorRef.current = editor;
useMonacoEx(monaco); // Integrate monaco-editor-ex
initializeMarkdownExtension(editor, monaco); // Initialize Markdown extension if applicable
}}
/>
)}
Expand Down

0 comments on commit 4449103

Please sign in to comment.