diff options
author | ab <abdullah_ahmed@brown.edu> | 2019-07-30 11:44:19 -0400 |
---|---|---|
committer | ab <abdullah_ahmed@brown.edu> | 2019-07-30 11:44:19 -0400 |
commit | d58d66f29eae28ac8244f8c2bcaa423e0aa99743 (patch) | |
tree | 6a34daa4fd4111470763f6b5c215c95fcd254f52 /src/client/views/nodes/PDFBox.tsx | |
parent | 38b5d646e62535504eb8667b840bf36cd7f2f6d8 (diff) | |
parent | ca91fe9e379fe3e2d48a0eb055415f008245ed31 (diff) |
merged
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index 4973340df..fa072aecf 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -69,24 +69,10 @@ export class PDFBox extends DocComponent<FieldViewProps, PdfDocument>(PdfDocumen componentDidMount() { if (this.props.setPdfBox) this.props.setPdfBox(this); - - document.removeEventListener("copy", this.copy); - document.addEventListener("copy", this.copy); } componentWillUnmount() { this._reactionDisposer && this._reactionDisposer(); - document.removeEventListener("copy", this.copy); - } - - private copy = (e: ClipboardEvent) => { - if (this.props.active()) { - if (e.clipboardData) { - e.clipboardData.setData("text/plain", text); - e.clipboardData.setData("dash/pdfOrigin", this.props.Document[Id]); - e.preventDefault(); - } - } } public GetPage() { |