UNPKG

@wangeditor-kai/yjs-for-react

Version:

React specific components/utils for wangeditor-next-yjs.

4 lines (3 loc) 303 B
import { CursorEditor, CursorState } from '@wangeditor-kai/yjs'; import { BaseRange } from 'slate'; export declare function getCursorRange<TCursorData extends Record<string, unknown> = Record<string, unknown>>(editor: CursorEditor<TCursorData>, cursorState: CursorState<TCursorData>): BaseRange | null;