This commit is contained in:
parent
479370b9f5
commit
1697cdff95
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue