Skip to content

Yjs multidoc #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 0 additions & 164 deletions components/CodeEditorOld/CodeEditor.js

This file was deleted.

7 changes: 0 additions & 7 deletions components/CodeEditorOld/CodeEditor.module.scss

This file was deleted.

93 changes: 0 additions & 93 deletions components/CodeEditorOld/CodeEditorSetup.js

This file was deleted.

85 changes: 0 additions & 85 deletions components/CodeEditorOld/CodeEditorUtils.js

This file was deleted.

3 changes: 0 additions & 3 deletions components/CodeEditorOld/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion components/CodeMirror6Instance/CodeMirror6Instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CodeMirror6Instance.propTypes = {
value: PropTypes.string,
state: PropTypes.object,
extensions: PropTypes.arrayOf(
PropTypes.oneOfType([PropTypes.object, PropTypes.func])
PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.func])
),
onInit: PropTypes.func,
onChange: PropTypes.func,
Expand Down
2 changes: 1 addition & 1 deletion components/CodeMirror6Instance/CodeMirror6InstanceHooks.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useRef, useState } from "react";
import { EditorState } from "@codemirror/state";
import { EditorView } from "codemirror";
import { EditorView } from "@codemirror/view";
import { useExtensions } from "./extensions/useExtensions";

export function useCodeMirror6Instance(props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { lintKeymap } from "@codemirror/lint";
export const defaultKeymaps = keymap.of([
...defaultKeymap,
...searchKeymap,
...historyKeymap,
// ...historyKeymap,
...lintKeymap,

// NOTE: This keymap refers to the `tab` key, NOT tabs vs spaces.
Expand All @@ -41,7 +41,7 @@ export const defaultKeymaps = keymap.of([
export const defaultExtensions = [
syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
highlightSpecialChars(),
history(),
// history(),

drawSelection(),
// Multi cursor/select
Expand Down
Loading