diff options
author | bobzel <zzzman@gmail.com> | 2022-11-04 14:34:46 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-11-04 14:34:46 -0400 |
commit | 31a51e9dda07e48c88166bffbc8f1ad7166cd624 (patch) | |
tree | 848060dc1d5c358b2f5d2576e4269265a3f143fe /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | fe98c7d46df1852a74cd84dbe9ad010bfb3d5550 (diff) |
more fixes to sidebar annotations of pdfs to improve link following.
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 4378c10f7..63435eea8 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -1495,7 +1495,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FieldViewProps !this.props.isSelected(true) && editor.dispatch(editor.state.tr.setSelection(new TextSelection(editor.state.doc.resolve(pcords?.pos || 0)))); let target = e.target as any; // hrefs are stored on the dataset of the <a> node that wraps the hyerlink <span> while (target && !target.dataset?.targethrefs) target = target.parentElement; - FormattedTextBoxComment.update(this, editor, undefined, target?.dataset?.targethrefs, target?.dataset.linkdoc, target?.dataset.noPreview); + FormattedTextBoxComment.update(this, editor, undefined, target?.dataset?.targethrefs, target?.dataset.linkdoc, target?.dataset.nopreview); } if (e.button === 0 && this.props.isSelected(true) && !e.altKey) { |