@atlaskit/editor-plugin-rule
Version:
Rule plugin for @atlaskit/editor-core
7 lines (6 loc) • 509 B
TypeScript
import type { IntlShape } from 'react-intl';
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types/floating-toolbar';
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
import type { RulePlugin } from '../rulePluginType';
export declare const getToolbarConfig: (state: EditorState, intl: IntlShape, api?: ExtractInjectionAPI<RulePlugin>) => FloatingToolbarConfig | undefined;