@atlaskit/editor-core
Version:
A package contains Atlassian editor core functionality
12 lines (11 loc) • 817 B
TypeScript
import { EditorState, ResolvedPos } from '../../prosemirror';
export declare const posOfMediaGroupNearby: (state: EditorState<any>) => number | undefined;
export declare const isSelectionNonMediaBlockNode: (state: EditorState<any>) => boolean;
export declare const posOfPreceedingMediaGroup: (state: EditorState<any>) => number | undefined;
/**
* Determine whether the cursor is inside empty paragraph
* or the selection is the entire paragraph
*/
export declare const isInsidePotentialEmptyParagraph: (state: EditorState<any>) => boolean;
export declare const posOfMediaGroupBelow: (state: EditorState<any>, $pos: ResolvedPos, prepend?: boolean) => number | undefined;
export declare const posOfParentMediaGroup: (state: EditorState<any>, $pos?: ResolvedPos | undefined, prepend?: boolean) => number | undefined;