Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/15989 转换折叠标题不展开

Vanessa92d3f0b0bffb
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index 898bc61bd0..9721848df0 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -1057,10 +1057,6 @@ export const turnsIntoTransaction = (options: {
const undoOperations: IOperation[] = [];
let previousId: string;
selectsElement.forEach((item, index) => {
- if ((options.type === "Blocks2Ps" || options.type === "Blocks2Hs") &&
- item.getAttribute("data-type") === "NodeHeading" && item.getAttribute("fold") === "1") {
- setFold(options.protyle, item, undefined, undefined, false);
- }
item.classList.remove("protyle-wysiwyg--select");
item.removeAttribute("select-start");
item.removeAttribute("select-end");