mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
c05f23f488
commit
d2145ec916
2 changed files with 41 additions and 0 deletions
|
|
@ -345,6 +345,7 @@ export const layoutToJSON = (layout: Layout | Wnd | Tab | Model, json: any) => {
|
|||
}
|
||||
json.instance = "Tab";
|
||||
} else if (layout instanceof Editor) {
|
||||
json.notebookId = layout.editor.protyle.notebookId;
|
||||
json.blockId = layout.editor.protyle.block.id;
|
||||
json.rootId = layout.editor.protyle.block.rootID;
|
||||
json.mode = layout.editor.protyle.preview.element.classList.contains("fn__none") ? "wysiwyg" : "preview";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue