diff options
| author | yipstanley <stanley_yip@brown.edu> | 2019-07-27 22:58:01 -0400 |
|---|---|---|
| committer | yipstanley <stanley_yip@brown.edu> | 2019-07-27 22:58:01 -0400 |
| commit | 160ca6c2673b96b8cfe9dfd5bd887a3637a1a45f (patch) | |
| tree | 2ddbabe4399e30c94e7e8a570adef1d5a96d4d36 /src/client/views/pdf/Page.tsx | |
| parent | 92b848b79eaf90235fed550bc96b6ca982bd07df (diff) | |
finisheddd
Diffstat (limited to 'src/client/views/pdf/Page.tsx')
| -rw-r--r-- | src/client/views/pdf/Page.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/pdf/Page.tsx b/src/client/views/pdf/Page.tsx index 989a53ec9..c205617b4 100644 --- a/src/client/views/pdf/Page.tsx +++ b/src/client/views/pdf/Page.tsx @@ -29,6 +29,7 @@ interface IPageProps { createAnnotation: (div: HTMLDivElement, page: number) => void; makeAnnotationDocuments: (doc: Doc | undefined, scale: number, color: string, linkTo: boolean) => Doc; getScrollFromPage: (page: number) => number; + setSelectionText: (text: string) => void; } @observer @@ -392,7 +393,7 @@ export default class Page extends React.Component<IPageProps> { } let text = selRange.extractContents().textContent; if (text) { - this.props.parent.selectionText = text; + this.props.setSelectionText(text); } // clear selection if (sel.empty) { // Chrome |
