@atlaskit/editor-plugin-expand
Version:
Expand plugin for @atlaskit/editor-core
8 lines (7 loc) • 588 B
TypeScript
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
export declare const isNestedInExpand: (state: EditorState) => boolean;
/** The element wrapping an expand's title and content, found from a position inside its content. */
export declare const getExpandWrapper: (editorView: EditorView, pos: number) => HTMLElement | null;
/** The title input of the expand whose content contains `pos`. */
export declare const getExpandTitleInput: (editorView: EditorView, pos: number) => HTMLInputElement | null;