@atlaskit/editor-plugin-mentions
Version:
Mentions plugin for @atlaskit/editor-core
13 lines (12 loc) • 467 B
TypeScript
import type { MentionNodeData } from '@atlaskit/mention/types';
export interface MentionAvatarController {
destroy: () => void;
render: (data: MentionNodeData) => void;
}
/**
* Populates the fixed-size avatar slot owned by the vanilla ProseMirror NodeView.
* No React root or editor portal is created for individual mention nodes.
*/
export declare const mentionAvatarRenderer: ({ container, }: {
container: HTMLElement;
}) => MentionAvatarController;