mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
f338c4016a
commit
87f681cce2
3 changed files with 26 additions and 2 deletions
|
|
@ -322,6 +322,7 @@ export const layoutToJSON = (layout: Layout | Wnd | Tab | Model, json: any) => {
|
|||
json.instance = "Tab";
|
||||
} else if (layout instanceof Editor) {
|
||||
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";
|
||||
json.action = layout.editor.protyle.block.showAll ? Constants.CB_GET_ALL : "";
|
||||
json.instance = "Editor";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue