mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-21 18:55:19 -04:00
Switch the base framework from Create React App to Next.JS
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
a979b6ffdd
commit
77a60c6c48
361 changed files with 5130 additions and 9605 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
import type { EditorConfiguration } from 'codemirror'
|
||||
import { useMemo } from 'react'
|
||||
import { defaultKeyMap } from '../key-map'
|
||||
import { createDefaultKeyMap } from '../key-map'
|
||||
import { useApplicationState } from '../../../../hooks/common/use-application-state'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
|
@ -36,7 +36,7 @@ export const useCodeMirrorOptions = (): EditorConfiguration => {
|
|||
autoCloseTags: true,
|
||||
foldGutter: true,
|
||||
gutters: ['CodeMirror-linenumbers', 'authorship-gutters', 'CodeMirror-foldgutter'],
|
||||
extraKeys: defaultKeyMap,
|
||||
extraKeys: createDefaultKeyMap(),
|
||||
flattenSpans: true,
|
||||
addModeClass: true,
|
||||
autoRefresh: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue