UNPKG

@wangeditor-kai/yjs-for-react

Version:

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

8 lines (7 loc) 349 B
import { Editor, Span } from 'slate'; import { WithTableOptions } from './options'; /** * Determines whether two paths belong to the same types by checking * if they share a common ancestor node of type table */ export declare function hasCommon(editor: Editor, [path, another]: Span, ...types: Array<keyof WithTableOptions['blocks']>): boolean;