mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
0cda1892a0
commit
436f439dd1
1 changed files with 20 additions and 0 deletions
|
|
@ -219,6 +219,26 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
submenu.push({
|
||||||
|
label: "原始块",
|
||||||
|
click() {
|
||||||
|
fetchPost("/api/block/swapBlockRef", {
|
||||||
|
refID: id,
|
||||||
|
defID: refBlockId,
|
||||||
|
includeChildren: false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
submenu.push({
|
||||||
|
label: "原始块及子块",
|
||||||
|
click() {
|
||||||
|
fetchPost("/api/block/swapBlockRef", {
|
||||||
|
refID: id,
|
||||||
|
defID: refBlockId,
|
||||||
|
includeChildren: true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
window.siyuan.menus.menu.append(new MenuItem({
|
window.siyuan.menus.menu.append(new MenuItem({
|
||||||
label: window.siyuan.languages.turnInto,
|
label: window.siyuan.languages.turnInto,
|
||||||
icon: "iconRefresh",
|
icon: "iconRefresh",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue