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.
22 lines (19 loc) • 401 B
text/typescript
// Custom Types
import type { StyleMapType } from '../../types/inline';
const initialStyleMap: StyleMapType = {
LINE_THROUGH: {
textDecoration: 'line-through',
},
OVERLINE: {
textDecoration: 'overline',
},
SUPERSCRIPT: {
verticalAlign: 'top',
fontSize: '0.75em',
},
SUBSCRIPT: {
verticalAlign: 'sub',
fontSize: '0.75em',
},
};
export default initialStyleMap;