@atlaskit/editor-plugin-mentions
Version:
Mentions plugin for @atlaskit/editor-core
5 lines (4 loc) • 322 B
TypeScript
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
import type { MentionPluginState } from '../types';
export declare function getMentionPluginState(state: EditorState): MentionPluginState;
export declare const canMentionBeCreatedInRange: (from: number, to: number) => (state: EditorState) => boolean;