diff options
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"; } |
