@wangeditor-next/yjs-for-react
Version:
React specific components/utils for wangeditor-next-yjs.
7 lines (6 loc) • 423 B
TypeScript
import { BaseEditor, BaseElement } from 'slate';
import { NodeEntryWithContext } from '../utils';
/** Weak reference between the `Editor` and the selected elements */
export declare const EDITOR_TO_SELECTION: WeakMap<BaseEditor, NodeEntryWithContext[][]>;
/** Weak reference between the `Editor` and a set of the selected elements */
export declare const EDITOR_TO_SELECTION_SET: WeakMap<BaseEditor, WeakSet<BaseElement>>;