diff options
author | bobzel <zzzman@gmail.com> | 2020-09-03 15:59:51 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-03 15:59:51 -0400 |
commit | 3ba4d0b56b5a0428d1b363ee05b419b954a2b071 (patch) | |
tree | deb25b5e277a6e91d7ec982fb71f2211c7ff6911 /src/client/views/nodes/DocumentView.tsx | |
parent | 91a30e512b93937409c2fb3299dc52fc2a87c22a (diff) |
fixed linking pdf selections to rtf selections.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 41e6d9603..f6360fc87 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -661,10 +661,8 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu if (de.complete.annoDragData) { /// this whole section for handling PDF annotations looks weird. Need to rethink this to make it cleaner e.stopPropagation(); - de.complete.annoDragData.linkedToDoc = true; - - const linkDoc = DocUtils.MakeLink({ doc: de.complete.annoDragData.annotationDocument }, { doc: this.props.Document }, "link"); - linkDoc && makeLink(linkDoc); + de.complete.annoDragData.linkDocument = DocUtils.MakeLink({ doc: de.complete.annoDragData.annotationDocument }, { doc: this.props.Document }, "link"); + de.complete.annoDragData.linkDocument && makeLink(de.complete.annoDragData.linkDocument); } if (de.complete.linkDragData) { e.stopPropagation(); |