UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

22 lines (21 loc) 636 B
/// <reference types="react" /> import { PureComponent } from 'react'; import { EditorView, PluginKey } from '../../prosemirror'; export interface Props { editorView?: EditorView; pluginKey: PluginKey; } export interface State { disabled: boolean; } export default class ToolbarMention extends PureComponent<Props, State> { state: State; private pluginState?; componentWillMount(): void; componentWillUpdate(nextProps: Props): void; componentWillUnmount(): void; render(): JSX.Element | null; private setPluginState(props); private handlePluginStateChange; private handleInsertMention; }