UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

22 lines (21 loc) 635 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 ToolbarMedia extends PureComponent<Props, State> { state: State; private pluginState?; componentDidMount(): void; componentWillUpdate(nextProps: Props): void; componentWillUnmount(): void; render(): JSX.Element | null; private setPluginState(props); private handlePluginStateChange; private handleClickMediaButton; }