diff options
| author | Andrew Kim <andrewdkim@users.noreply.github.com> | 2019-04-08 17:06:24 -0400 |
|---|---|---|
| committer | Andrew Kim <andrewdkim@users.noreply.github.com> | 2019-04-08 17:06:24 -0400 |
| commit | 52b30ce1ba6748c1d0a0f8697df3e66c53b2c315 (patch) | |
| tree | c0f8a201d93e1484037a1a2f4fab291ae6a21bdc /src/client/views/nodes/PDFBox.tsx | |
| parent | 1d7a74172bf91ddc58a68b4a2f6edf1fb5cff99d (diff) | |
Timeline Grapical Change
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
| -rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index 28a1f9757..4682753d7 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -151,6 +151,7 @@ export class PDFBox extends React.Component<FieldViewProps> { */ makeEditableAndHighlight = (colour: string) => { var range, sel = window.getSelection(); + if (sel) { if (sel.rangeCount && sel.getRangeAt) { range = sel.getRangeAt(0); } @@ -189,7 +190,7 @@ export class PDFBox extends React.Component<FieldViewProps> { } this._pageInfo.divs.push(obj); - } + }} document.designMode = "off"; } |
