mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-05-07 18:48:39 +00:00
add back things we had
This commit is contained in:
@@ -13,6 +13,8 @@ import {
|
|||||||
ViewPlugin,
|
ViewPlugin,
|
||||||
drawSelection,
|
drawSelection,
|
||||||
dropCursor,
|
dropCursor,
|
||||||
|
rectangularSelection,
|
||||||
|
crosshairCursor,
|
||||||
} from '@codemirror/view';
|
} from '@codemirror/view';
|
||||||
import { EditorState, Compartment, StateEffect, StateField } from '@codemirror/state';
|
import { EditorState, Compartment, StateEffect, StateField } from '@codemirror/state';
|
||||||
import { foldAll as foldAllCmd, unfoldAll as unfoldAllCmd, foldGutter, foldKeymap, syntaxHighlighting } from '@codemirror/language';
|
import { foldAll as foldAllCmd, unfoldAll as unfoldAllCmd, foldGutter, foldKeymap, syntaxHighlighting } from '@codemirror/language';
|
||||||
@@ -232,6 +234,8 @@ const CodeEditor = forwardRef(
|
|||||||
|
|
||||||
//multiple cursors and selections
|
//multiple cursors and selections
|
||||||
drawSelection(),
|
drawSelection(),
|
||||||
|
rectangularSelection,
|
||||||
|
crosshairCursor,
|
||||||
EditorState.allowMultipleSelections.of(true),
|
EditorState.allowMultipleSelections.of(true),
|
||||||
dropCursor(),
|
dropCursor(),
|
||||||
programmaticCursorLineField,
|
programmaticCursorLineField,
|
||||||
|
|||||||
Reference in New Issue
Block a user