mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-20 22:14:06 +01:00
This commit is contained in:
parent
2d52dbfd1c
commit
80decafb73
1 changed files with 1 additions and 3 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import {fetchPost} from "../util/fetch";
|
||||
import {setPosition} from "../util/setPosition";
|
||||
import {hasClosestByAttribute, hasClosestByClassName} from "../protyle/util/hasClosest";
|
||||
import * as dayjs from "dayjs";
|
||||
import {setStorageVal, writeText} from "../protyle/util/compatibility";
|
||||
import {getAllModels} from "../layout/getAll";
|
||||
import {focusByRange} from "../protyle/util/selection";
|
||||
|
|
@ -531,8 +530,7 @@ const getHightlightCoordsByRect = (pdf: any, color: string, rectResizeElement: H
|
|||
}];
|
||||
|
||||
const id = Lute.NewNodeID();
|
||||
const content = pdf.appConfig.file.replace(location.origin, "").substr(8).replace(/-\d{14}-\w{7}.pdf$/, "") +
|
||||
`-P${startPage.id}-${dayjs().format("YYYYMMDDHHmmss")}`;
|
||||
const content = `${pdf.appConfig.file.replace(location.origin, "").substr(8).replace(/-\d{14}-\w{7}.pdf$/, "")}-P${startPage.id}-${id}`;
|
||||
const result = [{
|
||||
index: startPage.id - 1,
|
||||
coords: [startSelected],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue