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 || '')
|
.processSync(this.props.value || '')
|
||||||
.contents;
|
.contents;
|
||||||
this.state = {
|
this.state = {
|
||||||
editorState: serializer.deserialize(html),
|
editorState: serializer.deserialize(html || '<p></p>'),
|
||||||
schema: {
|
schema: {
|
||||||
nodes: NODE_COMPONENTS,
|
nodes: NODE_COMPONENTS,
|
||||||
marks: MARK_COMPONENTS,
|
marks: MARK_COMPONENTS,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user