From 9e55d38acc7a6ef1477a81068c5b201f9b13a2e8 Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Mon, 18 Mar 2019 16:13:21 -0400 Subject: Got rid of some SetOnPrototype --- src/client/views/nodes/FormattedTextBox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/views/nodes') 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 { 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); } } -- cgit v1.2.3-70-g09d2 From ab55b4745e4c30547f8b3e23dcc9af455241e7ae Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Mon, 18 Mar 2019 18:40:12 -0400 Subject: Got rid of web box in FieldView --- src/client/views/nodes/FieldView.tsx | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/client/views/nodes') 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 { else if (field instanceof ImageField) { return } - else if (field instanceof WebField) { - return - } else if (field instanceof VideoField) { return } -- cgit v1.2.3-70-g09d2