mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
3247769115
commit
8a9a570b0e
3 changed files with 4 additions and 1 deletions
|
|
@ -406,6 +406,7 @@ export class Backlink extends Model {
|
||||||
breadcrumb: false,
|
breadcrumb: false,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
editor.protyle.notebookId = liElement.getAttribute("data-notebook-id");
|
||||||
this.editors.push(editor);
|
this.editors.push(editor);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
|
@ -513,6 +513,7 @@ declare interface IFile {
|
||||||
}
|
}
|
||||||
|
|
||||||
declare interface IBlockTree {
|
declare interface IBlockTree {
|
||||||
|
box: string,
|
||||||
nodeType: string,
|
nodeType: string,
|
||||||
hPath: string,
|
hPath: string,
|
||||||
subType: string,
|
subType: string,
|
||||||
|
|
|
||||||
|
|
@ -76,8 +76,9 @@ export class Tree {
|
||||||
}
|
}
|
||||||
const hasChild = (item.children && item.children.length > 0) || (item.blocks && item.blocks.length > 0);
|
const hasChild = (item.children && item.children.length > 0) || (item.blocks && item.blocks.length > 0);
|
||||||
html += `<li class="b3-list-item"
|
html += `<li class="b3-list-item"
|
||||||
${(item.nodeType !== "NodeDocument" && item.type === "backlink") ? 'draggable="true"' : ""}
|
${(item.nodeType !== "NodeDocument" && item.type === "backlink") ? 'draggable="true" ' : ""}
|
||||||
${item.id ? 'data-node-id="' + item.id + '"' : ""}
|
${item.id ? 'data-node-id="' + item.id + '"' : ""}
|
||||||
|
${item.box ? 'data-notebook-id="' + item.box + '"' : ""}
|
||||||
data-treetype="${item.type}"
|
data-treetype="${item.type}"
|
||||||
data-type="${item.nodeType}"
|
data-type="${item.nodeType}"
|
||||||
data-subtype="${item.subType}"
|
data-subtype="${item.subType}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue