fix empty initial state for rte

This commit is contained in:
Shawn Erquhart 2017-06-20 16:52:06 -04:00
parent 9c869be8fa
commit e01c077efb

View File

@ -195,7 +195,7 @@ export default class Editor extends Component {
.processSync(this.props.value || '')
.contents;
this.state = {
editorState: serializer.deserialize(html),
editorState: serializer.deserialize(html || '<p></p>'),
schema: {
nodes: NODE_COMPONENTS,
marks: MARK_COMPONENTS,