last-draft
Version:
Last Draft... A Draft.js Editor
21 lines (17 loc) • 531 B
JavaScript
/*
* Copyright (c) 2016, Globo.com (https://github.com/globocom)
* Copyright (c) 2016, vace.nz (https://github.com/vacenz)
*
* License: MIT
*/
import Editor from './components/Editor'
import * as convert from './convert'
const LD = {
editorStateFromRaw: convert.editorStateFromRaw,
editorStateFromHtml: convert.editorStateFromHtml,
editorStateFromText: convert.editorStateFromText,
editorStateToJSON: convert.editorStateToJSON,
editorStateToHtml: convert.editorStateToHtml,
Editor: Editor
}
module.exports = LD