Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/8569

Vanessad05d444c6672
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts
index c805a803ff..fc5fca831a 100644
--- a/app/src/protyle/util/onGet.ts
+++ b/app/src/protyle/util/onGet.ts
@@ -113,7 +113,7 @@ const setHTML = (options: {
expand: boolean,
scrollAttr?: IScrollAttr
}, protyle: IProtyle) => {
- if (protyle.contentElement.classList.contains("fn__none")) {
+ if (protyle.contentElement.classList.contains("fn__none") && protyle.wysiwyg.element.innerHTML !== "") {
return;
}
protyle.block.showAll = options.action.includes(Constants.CB_GET_ALL);