aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorlaurawilsonri <laura_wilson@brown.edu>2019-03-19 16:50:19 -0400
committerlaurawilsonri <laura_wilson@brown.edu>2019-03-19 16:50:19 -0400
commit7f65273917913d9e71fe73da66131888fb8d1020 (patch)
tree63da9ce79cc72752840c78a8ff6fae2f313ca1df /src/client/views/nodes/FormattedTextBox.tsx
parentf2fa6d6d28f2011a13f9034f5685b08301c291e4 (diff)
parent9eff1894078c0cbf5592646acb5e20e5761fc167 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into editableSchema
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index 4bd5726f4..ba9bd9566 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -56,7 +56,7 @@ export class FormattedTextBox extends React.Component<FieldViewProps> {
const state = this._editorView.state.apply(tx);
this._editorView.updateState(state);
const { doc, fieldKey } = this.props;
- doc.SetOnPrototype(fieldKey, new RichTextField(JSON.stringify(state.toJSON())))
+ doc.SetDataOnPrototype(fieldKey, JSON.stringify(state.toJSON()), RichTextField);
// doc.SetData(fieldKey, JSON.stringify(state.toJSON()), RichTextField);
}
}