mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
This commit is contained in:
parent
2b34dd2e32
commit
2a6597f388
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue