@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
8 lines (7 loc) • 623 B
TypeScript
import type { NodeType, ResolvedPos, Schema } from '@atlaskit/editor-prosemirror/model';
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
export declare const getParentOfTypeCount: (nodeType: NodeType) => ($pos: ResolvedPos) => number;
export declare const getPositionAfterTopParentNodeOfType: (nodeType: NodeType) => ($pos: ResolvedPos) => number | undefined;
export declare const isSelectionTableNestedInTable: (state: EditorState) => boolean;
export declare const isNestedTablesSupported: (schema: Schema) => boolean;
export declare const isPanelNestingTableSupported: (schema: Schema) => boolean;