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.

8 lines (5 loc) 237 B
// Custom Types import type { State } from '../../types'; const isSuperscript = (state: State, customSuperscriptKey?: string) => state.getCurrentInlineStyle().has(customSuperscriptKey || 'SUPERSCRIPT'); export default isSuperscript;