This commit is contained in:
Vanessa 2024-12-31 08:58:53 +08:00
parent 5913fa5218
commit d2863f096e
2 changed files with 3 additions and 3 deletions

View file

@ -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);
}
});

View file

@ -51,7 +51,7 @@ const removeTopElement = (updateElement: Element, protyle: IProtyle) => {
id: protyle.block.rootID,
isPushBack: false,
focusId: protyle.block.id,
})
});
}
}
if (doOperations.length > 0) {