diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-03-18 22:04:52 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-03-18 22:04:52 -0400 |
| commit | 0f55a6dd53633158e796374829ff0df81d589fee (patch) | |
| tree | 49cffbc0a5920d417e3c23d6e7a3898f979a44d6 /src/client/views/nodes | |
| parent | 76a415fc2bc967202027015efdcffdcb5fc511ba (diff) | |
| parent | 700d10e7bdba9e6536b8a5616fc333c11e1ed289 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/nodes')
| -rw-r--r-- | src/client/views/nodes/FieldView.tsx | 3 | ||||
| -rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/client/views/nodes/FieldView.tsx b/src/client/views/nodes/FieldView.tsx index e84c5f933..b6d50bffb 100644 --- a/src/client/views/nodes/FieldView.tsx +++ b/src/client/views/nodes/FieldView.tsx @@ -59,9 +59,6 @@ export class FieldView extends React.Component<FieldViewProps> { else if (field instanceof ImageField) { return <ImageBox {...this.props} /> } - else if (field instanceof WebField) { - return <WebBox {...this.props} /> - } else if (field instanceof VideoField) { return <VideoBox {...this.props} /> } 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); } } |
