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.
15 lines (11 loc) • 342 B
text/typescript
// Custom Utilities
import toggleBlockType from './toggleBlockType';
// Custom Types
import type { State, StateHandler } from '../../types';
const toggleUL = (
state: State,
stateHandler: StateHandler,
customOLType?: string
) =>
toggleBlockType(state, stateHandler, customOLType || 'unordered-list-item');
export default toggleUL;