aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-10-16 12:47:09 -0400
committerbob <bcz@cs.brown.edu>2019-10-16 12:47:09 -0400
commitfb817995eb94727b11324f298d0a30eebda8dcb7 (patch)
treec7fcb8864d686bc40fc82fd97ee728e839227a50 /src/client/views/nodes/FormattedTextBox.tsx
parent57ccb3e236a7dad71848a06dad757c5a5a081ce8 (diff)
removed DragEmbed -- subsumed by dragging aliases.
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index 8153cf61c..ae67e94cc 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -249,8 +249,8 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe
@undoBatch
@action
drop = async (e: Event, de: DragManager.DropEvent) => {
- if (de.data instanceof DragManager.EmbedDragData || (de.data instanceof DragManager.DocumentDragData && de.data.userDropAction)) {
- let target = de.data instanceof DragManager.DocumentDragData ? de.data.droppedDocuments[0] : Doc.MakeAlias(de.data.embeddableSourceDoc);
+ if (de.data instanceof DragManager.DocumentDragData && de.data.userDropAction) {
+ let target = de.data.droppedDocuments[0];
const link = DocUtils.MakeLink({ doc: this.dataDoc, ctx: this.props.ContainingCollectionDoc }, { doc: target }, "Embedded Doc:" + target.title);
target.fitToBox = true;
let node = schema.nodes.dashDoc.create({