UNPKG

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.

14 lines (10 loc) 331 B
// Custom Utilities import toggleBlockType from './toggleBlockType'; // Custom Types import type { State, StateHandler } from '../../types'; const toggleH2 = ( state: State, stateHandler: StateHandler, customH2Type?: string ) => toggleBlockType(state, stateHandler, customH2Type || 'header-two'); export default toggleH2;