UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

23 lines (22 loc) 667 B
/// <reference types="react" /> import { PureComponent } from 'react'; import { TextFormattingState } from '../../plugins/text-formatting'; import { EditorView } from '../../prosemirror'; export interface Props { disabled?: boolean; editorView: EditorView; pluginState: TextFormattingState; } export interface State { isActive?: boolean; isDisabled?: boolean; isEnabled?: boolean; } export default class ToolbarInlineCode extends PureComponent<Props, State> { state: State; componentDidMount(): void; componentWillUnmount(): void; private handlePluginStateChange; private handleOnClick; render(): JSX.Element | null; }