Vanessa 2024-12-13 09:09:55 +08:00
parent 9166956057
commit 12a58b39a1
2 changed files with 2 additions and 2 deletions

View file

@ -467,7 +467,7 @@ export class Backlink extends Model {
}
});
editor.protyle.notebookId = liElement.getAttribute("data-notebook-id");
searchMarkRender(editor.protyle, keyword.split(" "));
searchMarkRender(editor.protyle, response.data.keywords);
this.editors.push(editor);
});
}

View file

@ -46,7 +46,7 @@ export const reloadProtyle = (protyle: IProtyle, focus: boolean, updateReadonly?
}, response => {
protyle.options.backlinkData = isMention ? response.data.backmentions : response.data.backlinks;
renderBacklink(protyle, protyle.options.backlinkData);
searchMarkRender(protyle, keyword.split(" "));
searchMarkRender(protyle, response.data.keywords);
});
}
} else {