diff --git a/app/src/layout/dock/Backlink.ts b/app/src/layout/dock/Backlink.ts index fe0207f79..a62586336 100644 --- a/app/src/layout/dock/Backlink.ts +++ b/app/src/layout/dock/Backlink.ts @@ -406,6 +406,7 @@ export class Backlink extends Model { breadcrumb: false, } }); + editor.protyle.notebookId = liElement.getAttribute("data-notebook-id"); this.editors.push(editor); }); } diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts index fe6203c2a..cefe7d9a7 100644 --- a/app/src/types/index.d.ts +++ b/app/src/types/index.d.ts @@ -513,6 +513,7 @@ declare interface IFile { } declare interface IBlockTree { + box: string, nodeType: string, hPath: string, subType: string, diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.ts index e7096ab01..fe092b8d5 100644 --- a/app/src/util/Tree.ts +++ b/app/src/util/Tree.ts @@ -76,8 +76,9 @@ export class Tree { } const hasChild = (item.children && item.children.length > 0) || (item.blocks && item.blocks.length > 0); html += `