contenido
Version:
Contenido is a library with a set of tools to help you create your own rich text editor on top of draft-js without thinking about how to handle things.
5 lines (4 loc) • 307 B
TypeScript
import type { DraftHandleValue } from 'draft-js';
import type { ShortcutMap, State, StateHandler } from '../../types';
declare const shortcutHandler: (stateHandler: StateHandler, customShortcutsMap?: ShortcutMap[]) => (command: string, state: State) => DraftHandleValue;
export default shortcutHandler;