Vanessa 2025-05-12 11:10:29 +08:00
parent 69cc3bd361
commit e1b747b45a

View file

@ -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;
}