aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-09-11 17:24:48 -0400
committerbob <bcz@cs.brown.edu>2019-09-11 17:24:48 -0400
commit68e554cafb6107bfde9526773b3e0e667d582c88 (patch)
tree7231d41d21e735f193da329fb5f4cd5b6066f012 /src/client/views/nodes/FormattedTextBox.tsx
parent4722644d09a561e394bd72c92af5561a2020776e (diff)
added default note type collection
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index 0ea36cdc2..194026a08 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -289,7 +289,8 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe
} else if (de.data instanceof DragManager.DocumentDragData) {
const draggedDoc = de.data.draggedDocuments.length && de.data.draggedDocuments[0];
if (draggedDoc && draggedDoc.type === DocumentType.TEXT && StrCast(draggedDoc.layout) !== "") {
- this.props.Document.layout = draggedDoc;
+ if (this.props.DataDoc) this.props.DataDoc.layout = draggedDoc;
+ else this.props.Document.layout = draggedDoc;
draggedDoc.isTemplate = true;
e.stopPropagation();
}