UNPKG

@wangeditor-next/yjs-for-react

Version:

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

16 lines (15 loc) 504 B
/** * @description 绑定 node 的关系 * @author wangfupeng */ import { Ancestor, Node } from 'slate'; import { IDomEditor } from '../editor/interface'; /** * createEditor 未传递 selector 时,绑定 node 的关系( NODE_TO_PARENT, NODE_TO_INDEX 等 ) * @param node node * @param index index * @param parent parent node * @param editor editor */ declare function bindNodeRelation(node: Node, index: number, parent: Ancestor, editor: IDomEditor): void; export default bindNodeRelation;