mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
b24224f7c4
commit
8719a5974f
1 changed files with 2 additions and 2 deletions
|
|
@ -331,8 +331,8 @@ const getHightlightCoordsByRange = (pdf: any, color: string) => {
|
|||
}
|
||||
}
|
||||
});
|
||||
const content = Lute.EscapeHTMLStr(rangeContents.textContent);
|
||||
|
||||
// eslint-disable-next-line no-control-regex
|
||||
const content = Lute.EscapeHTMLStr(rangeContents.textContent.replace(/[\x00]|\n/g, ""));
|
||||
const startPage = pdf.pdfViewer.getPageView(startIndex);
|
||||
const startPageRect = startPage.canvas.getClientRects()[0];
|
||||
const startViewport = startPage.viewport;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue