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) • 338 B
text/typescript
// Custom Utilities
import addAtomicBlock from './addAtomic';
// Custom Types
import type { AudioAttributes, State, StateHandler } from '../../types';
const addAudio = (
state: State,
stateHandler: StateHandler,
attributes?: AudioAttributes
) => addAtomicBlock(state, stateHandler, 'audio', attributes);
export default addAudio;