mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
✏️ Fix typo (#12524)
This commit is contained in:
@@ -154,7 +154,7 @@ export const setRefDynamicText = (data: {
|
||||
"rootID": string
|
||||
}) => {
|
||||
getAllEditor().forEach(item => {
|
||||
// 不能对比 rootId,否则潜入块中的锚文本无法更新
|
||||
// 不能对比 rootId,否则嵌入块中的锚文本无法更新
|
||||
item.protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${data.blockID}"] span[data-type="block-ref"][data-subtype="d"][data-id="${data.defBlockID}"]`).forEach(item => {
|
||||
item.innerHTML = data.refText;
|
||||
});
|
||||
@@ -184,7 +184,7 @@ export const setDefRefCount = (data: {
|
||||
}
|
||||
return;
|
||||
}
|
||||
// 不能对比 rootId,否则潜入块中的锚文本无法更新
|
||||
// 不能对比 rootId,否则嵌入块中的锚文本无法更新
|
||||
item.protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${data.blockID}"]`).forEach(item => {
|
||||
const countElement = item.querySelector(".protyle-attr--refcount");
|
||||
if (countElement) {
|
||||
|
||||
Reference in New Issue
Block a user