fix empty initial state for rte
This commit is contained in:
parent
9c869be8fa
commit
e01c077efb
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user