aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-05-08 16:05:02 -0400
committerbob <bcz@cs.brown.edu>2019-05-08 16:05:02 -0400
commitc67fc234cf4a524c19989134d878797563207e93 (patch)
tree10612f2a4944fc96abcb7767f56dc6e8c2a3de1f /src/client/views/nodes/FormattedTextBox.tsx
parent6f9316683929b86e27fd4e2e30609670cd89f964 (diff)
fixes for templates and for dragging
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 8d2f1c780..ee6000da7 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -154,7 +154,7 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe
let text = StrCast(this.props.Document.documentText);
if (text.startsWith("@@@")) {
this.props.Document.proto!.documentText = undefined;
- this._editorView.dispatch(this._editorView.state.tr.insertText(text.substr(3)));
+ this._editorView.dispatch(this._editorView.state.tr.insertText(text.replace("@@@", "")));
}
}