UNPKG

@progress/kendo-react-editor

Version:
13 lines (12 loc) 519 B
import * as React from 'react'; import { EditorToolsSettings } from '../config/toolsSettings'; import { EditorState, Transaction } from '@progress/kendo-editor-common'; import { ToolProps } from './ToolProps'; /** * @hidden */ export declare type ProseMirrorCommand = (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean; /** * @hidden */ export declare const createProseMirrorTool: (settings: EditorToolsSettings.ToolSettings, command: ProseMirrorCommand) => React.ComponentClass<ToolProps, any>;