Format
This commit is contained in:
parent
0f652e8b5b
commit
a2b76bde14
3 changed files with 25 additions and 18 deletions
|
|
@ -42,9 +42,9 @@ const extensions = {
|
|||
isMultiCursorEnabled: (on) =>
|
||||
on
|
||||
? [
|
||||
EditorState.allowMultipleSelections.of(true),
|
||||
EditorView.clickAddsSelectionRange.of((ev) => ev.metaKey || ev.ctrlKey),
|
||||
]
|
||||
EditorState.allowMultipleSelections.of(true),
|
||||
EditorView.clickAddsSelectionRange.of((ev) => ev.metaKey || ev.ctrlKey),
|
||||
]
|
||||
: [],
|
||||
};
|
||||
const compartments = Object.fromEntries(Object.keys(extensions).map((key) => [key, new Compartment()]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue