1.1.0 • Published 8 years ago
unordered-draft-editor v1.1.0
unordered-draft-editor
a rich text editor based on draft-js
DEMO
INSTALL
npm i -S unordered-draft-editor
USAGE
import Editor from 'unordered-draft-editor'
render() {
return (
...
<Editor />
...
)
}
API
props
value: PropTypes.string
imageWidth: PropTypes.number.isRequired default 600
interface
getHtml() // return content html that convert from content state
getRawContent() // return raw content state