aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2020-04-26 23:55:23 -0700
committerSam Wilkins <samwilkins333@gmail.com>2020-04-26 23:55:23 -0700
commitfc470b25759e8f051dc527066f9bebcaf5e7707d (patch)
tree047d45d0dcba6b024b4057c5b166a67a2956b88d /src/client/views/nodes/FormattedTextBox.tsx
parentbc73c6e2c379a22969b37bd85fb4d534d47c299d (diff)
various buxton fixes
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index 8d4b90c41..d98172823 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -860,15 +860,8 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp
});
const startupText = !rtfField && this._editorView && Field.toString(this.dataDoc[fieldKey] as Field);
if (startupText) {
- const paragraphSegments = startupText.split("\n\n");
const { state: { tr }, dispatch } = this._editorView;
- if (paragraphSegments.length) {
- for (const paragraph of paragraphSegments) {
- dispatch(tr.insertText(paragraph));
- }
- } else {
- dispatch(tr.insertText(startupText));
- }
+ dispatch(tr.insertText(startupText));
}
}