mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user