mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
🚨
This commit is contained in:
parent
5913fa5218
commit
d2863f096e
2 changed files with 3 additions and 3 deletions
|
|
@ -235,11 +235,11 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement:
|
|||
}
|
||||
document.querySelector(".av__panel")?.remove();
|
||||
} else if (hasClosestByClassName(range.startContainer, "av__title")) {
|
||||
const node = document.createTextNode(text)
|
||||
const node = document.createTextNode(text);
|
||||
range.insertNode(node);
|
||||
range.setEnd(node, text.length);
|
||||
range.collapse(false);
|
||||
focusByRange(range)
|
||||
focusByRange(range);
|
||||
updateAVName(protyle, blockElement);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ const removeTopElement = (updateElement: Element, protyle: IProtyle) => {
|
|||
id: protyle.block.rootID,
|
||||
isPushBack: false,
|
||||
focusId: protyle.block.id,
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
if (doOperations.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue