mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-26 17:04:07 +01:00
This commit is contained in:
parent
1134854c40
commit
70c89fcc87
1 changed files with 6 additions and 1 deletions
|
|
@ -152,7 +152,12 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
|
|||
// 使用 md 闭合后继续输入应为普通文本
|
||||
blockElement.outerHTML = html.replace("</span><wbr>", "</span>" + Constants.ZWSP + "<wbr>");
|
||||
}
|
||||
blockElement = protyle.wysiwyg.element.querySelector(`[data-node-id="${id}"]`);
|
||||
protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${id}"]`).forEach((item: HTMLElement) => {
|
||||
if (item.getAttribute("data-type") === "NodeBlockQueryEmbed" ||
|
||||
!hasClosestByAttribute(item, "data-type", "NodeBlockQueryEmbed")) {
|
||||
blockElement = item;
|
||||
}
|
||||
});
|
||||
Array.from(tempElement.content.children).forEach((item, index) => {
|
||||
const tempId = item.getAttribute("data-node-id");
|
||||
let realElement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue