diff options
author | bobzel <zzzman@gmail.com> | 2023-09-13 10:31:20 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-09-13 10:31:20 -0400 |
commit | 6536508867969f8e9d191d0fd9e4dd0f43606bc0 (patch) | |
tree | 076ea98f6fe7633e8f2d23f3f497fb74891e3262 /src/client/views/nodes/PDFBox.tsx | |
parent | 087058437c7eedd01c0f8a84a29aa612d133049f (diff) |
need to honor 'addAsAnnotation' flag getting anchors so that docs know when they are a target of config.
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index 5cec8fc24..39e27d15b 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -248,7 +248,7 @@ export class PDFBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps PresBox.pinDocView(anchor, { pinDocLayout: pinProps?.pinDocLayout, pinData: { ...(pinProps?.pinData ?? {}), scrollable: true, pannable: true } }, this.rootDoc); anchor.text = ele?.textContent ?? ''; anchor.text_html = ele?.innerHTML; - addAsAnnotation && visibleAnchor && this.addDocument(anchor); + addAsAnnotation && this.addDocument(anchor); return anchor; }; |