mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-28 04:05:21 +00:00
refac
This commit is contained in:
parent
afaa404fe4
commit
b0d8372d31
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,6 @@ import {
|
||||||
prosemirrorJSONToYDoc
|
prosemirrorJSONToYDoc
|
||||||
} from 'y-prosemirror';
|
} from 'y-prosemirror';
|
||||||
import type { Socket } from 'socket.io-client';
|
import type { Socket } from 'socket.io-client';
|
||||||
import type { Awareness } from 'y-protocols/awareness';
|
|
||||||
import type { SessionUser } from '$lib/stores';
|
import type { SessionUser } from '$lib/stores';
|
||||||
import { Editor, Extension } from '@tiptap/core';
|
import { Editor, Extension } from '@tiptap/core';
|
||||||
import { keymap } from 'prosemirror-keymap';
|
import { keymap } from 'prosemirror-keymap';
|
||||||
|
|
@ -72,7 +71,8 @@ export class SocketIOCollaborationProvider {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins.push(yCursorPlugin(this.awareness as unknown as Awareness));
|
// @ts-ignore
|
||||||
|
plugins.push(yCursorPlugin(this.awareness));
|
||||||
|
|
||||||
return plugins;
|
return plugins;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue