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.

34 lines (31 loc) 625 B
const Draft = require('draft-js'); const { AtomicBlockUtils, CompositeDecorator, Editor, EditorState, Modifier, RichUtils, SelectionState, KeyBindingUtil, convertToRaw, convertFromRaw, genKey, getDefaultKeyBinding, } = Draft; module.exports = { AtomicBlockUtils, CompositeDecorator, Editor, EditorState, Modifier, RichUtils, SelectionState, KeyBindingUtil, convertToRaw, convertFromRaw, genKey, getDefaultKeyBinding, }; module.exports.DraftEntityMutability = Draft.DraftEntityMutability; module.exports.DraftDecorator = Draft.DraftDecorator;