UNPKG

@atlaskit/editor-plugin-block-controls

Version:

Block controls plugin for @atlaskit/editor-core

22 lines (21 loc) 842 B
import type { IntlShape } from 'react-intl'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; import type { BlockControlsPlugin } from '../blockControlsPluginType'; import type { AnchorRectCache } from './utils/anchor-utils'; type VanillaQuickInsertProps = { anchorName: string; anchorRectCache?: AnchorRectCache; api: ExtractInjectionAPI<BlockControlsPlugin>; cleanupCallbacks: ((() => void) | undefined)[]; formatMessage: IntlShape['formatMessage']; getPos: () => number | undefined; rootAnchorName: string; rootNodeType: string; view: EditorView; }; /** * Create a Node which contains the quick insert button */ export declare const createVanillaButton: (props: VanillaQuickInsertProps) => Node; export {};