This commit is contained in:
Vanessa 2023-05-19 22:25:09 +08:00
parent e784f6662a
commit 67e90a065b

View file

@ -266,6 +266,14 @@ export const hasSameTextStyle = (currentElement: HTMLElement, sideElement: HTMLE
blockRefData[2] === sideElement.textContent;
}
if (textObj.type === "file-annotation-ref") {
if (currentElement.nodeType !== 3) {
return currentElement.getAttribute("data-id") === sideElement.getAttribute("data-id") &&
currentElement.textContent === sideElement.textContent;
}
return textObj.color === sideElement.getAttribute("data-id");
}
let color = "";
let webkitTextFillColor = "";
let webkitTextStroke = "";