@draft-js-plugins/focus
Version:
Focus Plugin for DraftJS
12 lines (11 loc) • 427 B
TypeScript
import { EditorPlugin } from '@draft-js-plugins/editor';
import createDecorator from './createDecorator';
import { FocusPluginTheme } from './theme';
export interface FocusEditorPluginConfig {
theme?: FocusPluginTheme;
}
type FocusEditorPlugin = EditorPlugin & {
decorator: ReturnType<typeof createDecorator>;
};
declare const _default: (config?: FocusEditorPluginConfig) => FocusEditorPlugin;
export default _default;