diff options
| author | bobzel <zzzman@gmail.com> | 2022-11-08 14:43:47 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-11-08 14:43:47 -0500 |
| commit | b8d4b08716791246847d2a647a9df1f37508b87f (patch) | |
| tree | 31a3ace00546a20111f66b07a122b15de0c1a946 /src/client/views/pdf | |
| parent | 31a51e9dda07e48c88166bffbc8f1ad7166cd624 (diff) | |
making pasting form pdf work again with backlinks. text fixes for equationViews and dashField views -- trying to get docref linkAnchor to work.
Diffstat (limited to 'src/client/views/pdf')
| -rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index abc7336bd..7f99c30e3 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -131,6 +131,10 @@ export class PDFViewer extends React.Component<IViewerProps> { copy = (e: ClipboardEvent) => { if (this.props.isContentActive() && e.clipboardData) { e.clipboardData.setData('text/plain', this._selectionText); + const anchor = this._getAnchor(); + if (anchor) { + e.clipboardData.setData('dash/pdfAnchor', anchor[Id]); + } e.preventDefault(); } }; |
