Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit d3cb251

Browse files
committed
Include dropCursor
FEATURE: The basic setup now includes the `dropCursor` extension.
1 parent 08c4685 commit d3cb251

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@codemirror/rectangular-selection": "^0.19.0",
4141
"@codemirror/search": "^0.19.0",
4242
"@codemirror/state": "^0.19.0",
43-
"@codemirror/view": "^0.19.0"
43+
"@codemirror/view": "^0.19.31"
4444
},
4545
"devDependencies": {
4646
"@codemirror/buildhelper": "^0.1.5"

src/basic-setup.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {keymap, highlightSpecialChars, drawSelection, highlightActiveLine} from "@codemirror/view"
1+
import {keymap, highlightSpecialChars, drawSelection, highlightActiveLine, dropCursor} from "@codemirror/view"
22
import {Extension, EditorState} from "@codemirror/state"
33
import {history, historyKeymap} from "@codemirror/history"
44
import {foldGutter, foldKeymap} from "@codemirror/fold"
@@ -27,6 +27,7 @@ import {lintKeymap} from "@codemirror/lint"
2727
/// - [the undo history](#history.history)
2828
/// - [a fold gutter](#fold.foldGutter)
2929
/// - [custom selection drawing](#view.drawSelection)
30+
/// - [drop cursor](#view.dropCursor)
3031
/// - [multiple selections](#state.EditorState^allowMultipleSelections)
3132
/// - [reindentation on input](#language.indentOnInput)
3233
/// - [the default highlight style](#highlight.defaultHighlightStyle) (as fallback)
@@ -56,6 +57,7 @@ export const basicSetup: Extension = [
5657
history(),
5758
foldGutter(),
5859
drawSelection(),
60+
dropCursor(),
5961
EditorState.allowMultipleSelections.of(true),
6062
indentOnInput(),
6163
defaultHighlightStyle.fallback,

0 commit comments

Comments
 (0)