mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-30 07:38:12 +00:00
add dropcursor extension
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
|||||||
ViewPlugin,
|
ViewPlugin,
|
||||||
WidgetType,
|
WidgetType,
|
||||||
drawSelection,
|
drawSelection,
|
||||||
|
dropCursor,
|
||||||
} from '@codemirror/view';
|
} from '@codemirror/view';
|
||||||
import { EditorState, Compartment } from '@codemirror/state';
|
import { EditorState, Compartment } from '@codemirror/state';
|
||||||
import { foldGutter, foldKeymap, syntaxHighlighting } from '@codemirror/language';
|
import { foldGutter, foldKeymap, syntaxHighlighting } from '@codemirror/language';
|
||||||
@@ -187,6 +188,7 @@ const CodeEditor = forwardRef(
|
|||||||
drawSelection(),
|
drawSelection(),
|
||||||
EditorState.allowMultipleSelections.of(true),
|
EditorState.allowMultipleSelections.of(true),
|
||||||
customClose,
|
customClose,
|
||||||
|
dropCursor(),
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user