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.
11 lines (7 loc) • 297 B
text/typescript
// Custom Utilities
import hasBlockTypeOf from '../helper/hasBlockTypeOf';
// Custom Types
import type { State } from '../../types';
const isTextCenterAligned = (state: State, customKey?: string) =>
hasBlockTypeOf(state, customKey || 'text-align-center');
export default isTextCenterAligned;