mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 03:10:16 +01:00
This commit is contained in:
parent
dacbb22ab4
commit
5abdf08706
6 changed files with 15 additions and 0 deletions
|
|
@ -27,3 +27,8 @@ export const searchMarkRender = (protyle: IProtyle, matchElements: NodeListOf<El
|
|||
CSS.highlights.set("search-mark-hl-" + protyle.highlight.styleElement.dataset.uuid, protyle.highlight.markHL);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
export const searchTextMarkRender = (element: HTMLElement, k: string[]) => {
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ export const getDocByScroll = (options: {
|
|||
query: options.protyle.query?.key,
|
||||
queryMethod: options.protyle.query?.method,
|
||||
queryTypes: options.protyle.query?.types,
|
||||
highlight: CSS && CSS.highlights,
|
||||
}, response => {
|
||||
if (response.code === 1) {
|
||||
fetchPost("/api/filetree/getDoc", {
|
||||
|
|
@ -80,6 +81,7 @@ export const getDocByScroll = (options: {
|
|||
query: options.protyle.query?.key,
|
||||
queryMethod: options.protyle.query?.method,
|
||||
queryTypes: options.protyle.query?.types,
|
||||
highlight: CSS && CSS.highlights,
|
||||
}, response => {
|
||||
onGet({
|
||||
data: response,
|
||||
|
|
@ -111,6 +113,7 @@ export const getDocByScroll = (options: {
|
|||
query: options.protyle.query?.key,
|
||||
queryMethod: options.protyle.query?.method,
|
||||
queryTypes: options.protyle.query?.types,
|
||||
highlight: CSS && CSS.highlights,
|
||||
}, response => {
|
||||
onGet({
|
||||
data: response,
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ export const reloadProtyle = (protyle: IProtyle, focus: boolean, updateReadonly?
|
|||
fetchPost(isMention ? "/api/ref/getBackmentionDoc" : "/api/ref/getBacklinkDoc", {
|
||||
defID: protyle.element.getAttribute("data-defid"),
|
||||
refTreeID: protyle.block.rootID,
|
||||
highlight: CSS && CSS.highlights,
|
||||
keyword: isMention ? inputsElement[1].value : inputsElement[0].value,
|
||||
}, response => {
|
||||
protyle.options.backlinkData = isMention ? response.data.backmentions : response.data.backlinks;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue