mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
This commit is contained in:
parent
69cc3bd361
commit
e1b747b45a
1 changed files with 4 additions and 3 deletions
|
|
@ -621,14 +621,15 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||
}, 450);
|
||||
}
|
||||
});
|
||||
const attrElement = item.querySelector(".protyle-attr")
|
||||
if (data.new["custom-avs"] && !data.new["av-names"]) {
|
||||
nodeAttrHTML += item.lastElementChild.querySelector(".protyle-attr--av")?.outerHTML || "";
|
||||
nodeAttrHTML += attrElement.querySelector(".protyle-attr--av")?.outerHTML || "";
|
||||
}
|
||||
const refElement = item.lastElementChild.querySelector(".protyle-attr--refcount");
|
||||
const refElement = attrElement.querySelector(".protyle-attr--refcount");
|
||||
if (refElement) {
|
||||
nodeAttrHTML += refElement.outerHTML;
|
||||
}
|
||||
item.lastElementChild.innerHTML = nodeAttrHTML + Constants.ZWSP;
|
||||
attrElement.innerHTML = nodeAttrHTML + Constants.ZWSP;
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue