Improve desktop editing experience

This commit is contained in:
2026-07-24 15:16:02 +02:00
parent 8b9f47f793
commit 3abcc94eca
2 changed files with 16 additions and 0 deletions
+4
View File
@@ -51,6 +51,10 @@
var state = CM.EditorState.create({
doc: hidden.value,
// Start with the caret at the end of the existing content — editing an
// existing page almost always means appending, and the default (start
// of doc) buries the caret behind the leading heading.
selection: { anchor: hidden.value.length },
extensions: [
CM.history(),
CM.drawSelection(),