diff options
author | bobzel <zzzman@gmail.com> | 2020-09-28 22:42:35 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-28 22:42:35 -0400 |
commit | 5c2eb19150200f9588f256d405110dd930a1c3ca (patch) | |
tree | 03ee5fafaac990af3890e7069ab7f89f954160b3 | |
parent | 9aa10d201610cc2da7a28f720a7963dbe50e0069 (diff) |
made pdf annotations default to selected & editable on drop
-rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index c9219b3f2..e54464b77 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -35,6 +35,7 @@ import { LinkDocPreview } from "../nodes/LinkDocPreview"; import { FormattedTextBoxComment } from "../nodes/formattedText/FormattedTextBoxComment"; import { CurrentUserUtils } from "../../util/CurrentUserUtils"; import { SharingManager } from "../../util/SharingManager"; +import { FormattedTextBox } from "../nodes/formattedText/FormattedTextBox"; const PDFJSViewer = require("pdfjs-dist/web/pdf_viewer"); const pdfjsLib = require("pdfjs-dist"); const _global = (window /* browser */ || global /* node */) as any; @@ -624,6 +625,7 @@ export class PDFViewer extends ViewBoxAnnotatableComponent<IViewerProps, PdfDocu clipDoc._height = this.marqueeHeight(); clipDoc._scrollTop = this.marqueeY(); const targetDoc = CurrentUserUtils.GetNewTextDoc("Note linked to " + this.props.Document.title, 0, 0, 100, 100); + FormattedTextBox.SelectOnLoad = targetDoc[Id]; Doc.GetProto(targetDoc).data = new List<Doc>([clipDoc]); clipDoc.rootDocument = targetDoc; // DocUtils.makeCustomViewClicked(targetDoc, Docs.Create.StackingDocument, "slideView", undefined); |