diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-03-10 22:20:31 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-03-10 22:20:31 -0400 |
commit | 845a7989a6ff66b1c922d1f7f69c7560b6783dd8 (patch) | |
tree | 8a9c364290f71e900169e8b00ec673b4ca1c1522 /src/client/views/nodes/FormattedTextBox.tsx | |
parent | 0b9dab6403ed3e073f499cd38d3cb4aa434d7c95 (diff) |
fixed type of FormattedTextBox to RichTextField
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index f5063f9b1..ad7ddf37a 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -69,7 +69,7 @@ export class FormattedTextBox extends React.Component<FieldViewProps> { }; let field = this.props.doc.GetT(this.props.fieldKey, RichTextField); - if (field && field != FieldWaiting) { + if (field && field != FieldWaiting && field.Data) { state = EditorState.fromJSON(config, JSON.parse(field.Data)); } else { state = EditorState.create(config); |