mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
e784f6662a
commit
67e90a065b
1 changed files with 8 additions and 0 deletions
|
|
@ -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 = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue