diff options
| author | bob <bcz@cs.brown.edu> | 2019-07-11 16:05:50 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-07-11 16:05:50 -0400 |
| commit | 348cedb4db1426f4bac8f0ff4e136f329983f7c1 (patch) | |
| tree | 3d6bbe3a0d4d0886ba5ee56efff88d220945962f /src/client/views/nodes/FormattedTextBox.tsx | |
| parent | 36992ca2388e2a6919ecf0b78f4731bc9aea8f86 (diff) | |
| parent | b4350c48aee6474692330761f96f8d93bfd4b2da (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
| -rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index 5475aa2b2..084fd4c96 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -232,9 +232,10 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe return field ? field.Data : `{"doc":{"type":"doc","content":[]},"selection":{"type":"text","anchor":0,"head":0}}`; }, field2 => { - if (StrCast(this.props.Document.layout).indexOf("\"" + this.props.fieldKey + "\"") !== -1) // bcz: UGH! why is this needed... something is happening out of order. test with making a collection, then adding a text note and converting that to a template field. + if (StrCast(this.props.Document.layout).indexOf("\"" + this.props.fieldKey + "\"") !== -1) { // bcz: UGH! why is this needed... something is happening out of order. test with making a collection, then adding a text note and converting that to a template field. this._editorView && !this._applyingChange && this._editorView.updateState(EditorState.fromJSON(config, JSON.parse(field2))); + } } ); |
