Skip to content

Fix for selecting all text of a Math block and typing doesn't overwrite all text#420

Merged
heyman merged 2 commits intomainfrom
fix-math-blocks-select-all-and-edit
Jan 1, 2026
Merged

Fix for selecting all text of a Math block and typing doesn't overwrite all text#420
heyman merged 2 commits intomainfrom
fix-math-blocks-select-all-and-edit

Conversation

@heyman
Copy link
Copy Markdown
Owner

@heyman heyman commented Dec 31, 2025

Fixes #317

This fixes an issue when selecting all content of a Math block and typing a character would not overwrite the whole selection.
Add small patch for @codemirror/view (applied through patch-package) that fixes so that it's possible to use Alt key bindings on Mac.
Update todo-checkbox since it seems as if EditorView.posAtDom() now returns the buffer position for the start of the checkbox widget, instead of the end.
@heyman heyman marked this pull request as ready for review January 1, 2026 13:28
@heyman heyman merged commit 814e266 into main Jan 1, 2026
3 checks passed
@heyman heyman deleted the fix-math-blocks-select-all-and-edit branch January 1, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: In Math mode, selecting all text and typing doesn't overwrite all text

1 participant