0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-04-30 06:30:03 +00:00

CM6: Added tabbing, fixed dark mode border in WYSIWYG

This commit is contained in:
Dan Brown 2023-04-18 13:41:28 +01:00
parent 900571ac9c
commit 94f464cd14
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
3 changed files with 11 additions and 3 deletions
resources/js/code

View file

@ -1,7 +1,7 @@
import {EditorView, keymap, drawSelection, highlightActiveLine, dropCursor,
rectangularSelection, lineNumbers, highlightActiveLineGutter} from "@codemirror/view"
import {bracketMatching} from "@codemirror/language"
import {defaultKeymap, history, historyKeymap} from "@codemirror/commands"
import {defaultKeymap, history, historyKeymap, indentWithTab} from "@codemirror/commands"
import {EditorState} from "@codemirror/state"
import {getTheme} from "./themes";
@ -47,6 +47,7 @@ export function editorExtensions(parentEl) {
keymap.of([
...defaultKeymap,
...historyKeymap,
indentWithTab,
]),
EditorView.lineWrapping,
];