Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/9250

Vanessa2a6597f388da
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index 621ae32f95..646e7c4452 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -533,7 +533,9 @@ export const layoutToJSON = (layout: Layout | Wnd | Tab | Model, json: any, drop
} else if (layout instanceof Custom) {
json.instance = "Custom";
json.customModelType = layout.type;
- json.customModelData = layout.data;
+ json.customModelData = Object.assign({}, layout.data);
+ // https://github.com/siyuan-note/siyuan/issues/9250
+ delete json.customModelData.editor;
}
if (layout instanceof Layout || layout instanceof Wnd) {