@skokenes/slate-yjs
Version:
Yjs bindings for Slate.
9 lines (8 loc) • 305 B
TypeScript
import { NodeEntry, Range } from 'slate';
import { Cursor } from '../model';
import { CursorEditor } from './cursorEditor';
export declare const useCursors: (editor: CursorEditor) => {
decorate: (entry: NodeEntry<import("slate").Node>) => Range[];
cursors: Cursor[];
};
export default useCursors;