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.
19 lines (16 loc) • 360 B
text/typescript
// Types
import type { RawDraftContentState } from 'draft-js';
const emptyRawContentState: RawDraftContentState = {
entityMap: {},
blocks: [
{
text: '',
key: 'LG6AABOZOBAMJ',
type: 'unstyled',
entityRanges: [],
depth: 0,
inlineStyleRanges: [],
},
],
};
export default emptyRawContentState;