diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 60bc2ae6a..6a6182c56 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -2321,7 +2321,7 @@ export class Gutter {
if (isShow) {
type = nodeElement.getAttribute("data-type");
}
- const dataNodeId = nodeElement.getAttribute("data-node-id");
+ let dataNodeId = nodeElement.getAttribute("data-node-id");
if (type === "NodeAttributeView" && target) {
const rowElement = hasClosestByClassName(target, "av__row");
if (rowElement && !rowElement.classList.contains("av__row--header")) {
@@ -2354,6 +2354,7 @@ export class Gutter {
if (!topElement.isSameNode(nodeElement) && type !== "NodeHeading") {
nodeElement = topElement;
type = nodeElement.getAttribute("data-type");
+ dataNodeId = nodeElement.getAttribute("data-node-id");
}
}
if (type === "NodeListItem" && index === 1 && !isShow) {
@@ -2365,10 +2366,15 @@ export class Gutter {
if (protyle.disabled) {
gutterTip = this.gutterTip.split("
").splice(0, 2).join("
");
}
+
+ let popoverHTML = ""
+ if (protyle.options.backlinkData) {
+ popoverHTML = `class="popover__block" data-id="${dataNodeId}"`
+ }
const buttonHTML = ``;
if (isShow) {
html = buttonHTML + html;