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/14766

Vanessaf9f88e8920ce
diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts
index 9f9b2f7baa..4f0da9bc9c 100644
--- a/app/src/protyle/wysiwyg/input.ts
+++ b/app/src/protyle/wysiwyg/input.ts
@@ -212,6 +212,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
}
});
}
+ html = "";
Array.from(tempElement.content.children).forEach((item, index) => {
const tempId = item.getAttribute("data-node-id");
let realElement;
@@ -271,6 +272,8 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
}
}
}
+ // https://github.com/siyuan-note/siyuan/issues/14766
+ html += realElement.outerHTML;
});
} else if (blockElement.getAttribute("data-type") === "NodeCodeBlock") {
editElement.parentElement.removeAttribute("data-render");