Browse Source

add comment

reiji-h 2 years ago
parent
commit
d0e3612f9c

+ 2 - 0
packages/editor/src/services/codemirror-editor/use-codemirror-editor/use-codemirror-editor.ts

@@ -39,6 +39,8 @@ export const useCodeMirrorEditor = (props?: UseCodeMirror): UseCodeMirrorEditor
       props ?? {},
       {
         extensions: defaultExtensions,
+        // Reset settings of react-codemirror.
+        // The extension defined first will be used, so it must be disabled here.
         indentWithTab: false,
         basicSetup: {
           defaultKeymap: false,