UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

23 lines (22 loc) 669 B
/// <reference types="react" /> import { PureComponent } from 'react'; import { EditorView, PluginKey } from '../../prosemirror'; import { HyperlinkState } from '../../plugins/hyperlink'; export interface Props { editorView: EditorView; pluginState: HyperlinkState; disabled?: boolean; } export interface State { adding?: boolean; disabled?: boolean; } export declare const stateKey: PluginKey; export default class ToolbarHyperlink extends PureComponent<Props, State> { state: State; componentDidMount(): void; componentWillUnmount(): void; render(): JSX.Element; private toggleLinkPanel; private handlePluginStateChange; }