@progress/kendo-react-editor
Version:
Kendo UI for React Editor package
23 lines (22 loc) • 661 B
TypeScript
import { EditorState, Transaction, EditorView } from '@progress/kendo-editor-common';
import { EditorToolsSettings } from './toolsSettings';
/**
* @hidden
*/
export interface Shortcuts {
[key: string]: (state: EditorState, dispatch: (tr: Transaction) => void, view: EditorView) => boolean;
}
/**
* @hidden
*/
export declare const getShortcuts: (settings?: {
types?: {
listItem: string;
hardBreak: string;
};
toolsSettings?: {
bold?: EditorToolsSettings.InlineFormatOptions;
italic?: EditorToolsSettings.InlineFormatOptions;
underline?: EditorToolsSettings.InlineFormatOptions;
};
}) => Shortcuts;