mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
51a0db5822
commit
14a01a7365
2 changed files with 14 additions and 7 deletions
|
|
@ -228,6 +228,9 @@ const JSONToCenter = (json: any, layout?: Layout | Wnd | Tab | Model) => {
|
|||
(layout as Wnd).addTab(child);
|
||||
(layout as Wnd).showHeading();
|
||||
} else if (json.instance === "Editor" && json.blockId) {
|
||||
if (window.siyuan.config.fileTree.openFilesUseCurrentTab) {
|
||||
(layout as Tab).headElement.classList.add("item--unupdate");
|
||||
}
|
||||
(layout as Tab).headElement.setAttribute("data-initdata", JSON.stringify(json));
|
||||
} else if (json.instance === "Asset") {
|
||||
(layout as Tab).addModel(new Asset({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue