Vanessa 2024-04-28 23:02:37 +08:00
parent 479370b9f5
commit 1697cdff95

View file

@ -60,6 +60,9 @@ export const addSubList = (protyle: IProtyle, nodeElement: Element, range: Range
if (lastSubItem.parentElement.getAttribute("fold") === "1") {
setFold(protyle, lastSubItem.parentElement, true);
}
if (parentItemElement.getAttribute("fold") === "1") {
setFold(protyle, parentItemElement, true);
}
transaction(protyle, [{
action: "insert",
id,