Improve mobile editing

This commit is contained in:
2026-06-05 10:27:56 +02:00
parent de3abed6d7
commit 7be8bec446
7 changed files with 96 additions and 20 deletions
+3 -1
View File
@@ -6,7 +6,7 @@
// :root CSS variables so there are no hardcoded colors/spacing here.
import { EditorState, EditorSelection, Compartment, Prec } from "@codemirror/state";
import { EditorView, keymap, drawSelection } from "@codemirror/view";
import { history, historyKeymap, defaultKeymap, indentWithTab } from "@codemirror/commands";
import { history, historyKeymap, defaultKeymap, indentWithTab, undo, redo } from "@codemirror/commands";
import { markdown, markdownLanguage, markdownKeymap } from "@codemirror/lang-markdown";
import { syntaxHighlighting, HighlightStyle, indentOnInput } from "@codemirror/language";
import {
@@ -89,6 +89,8 @@ window.CM = {
historyKeymap,
defaultKeymap,
indentWithTab,
undo,
redo,
markdown,
markdownLanguage,
markdownKeymap,