mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
0ad0d416c4
commit
f6a4ccfc7d
2 changed files with 14 additions and 12 deletions
|
|
@ -272,13 +272,6 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|||
type: "submenu",
|
||||
submenu: copySubMenu(blockId)
|
||||
});
|
||||
menu.addItem({
|
||||
label: window.siyuan.languages.unbindBlock,
|
||||
icon: "iconLinkOff",
|
||||
click() {
|
||||
updateCellsValue(protyle, blockElement, keyCellElement.querySelector(".av__celltext").textContent, [keyCellElement]);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (!protyle.disabled) {
|
||||
menu.addItem({
|
||||
|
|
@ -366,6 +359,15 @@ ${window.siyuan.languages.insertRowAfter.replace("${x}", '<span class="fn__space
|
|||
}
|
||||
});
|
||||
menu.addSeparator();
|
||||
if (keyCellElement.getAttribute("data-detached") !== "true") {
|
||||
menu.addItem({
|
||||
label: window.siyuan.languages.unbindBlock,
|
||||
icon: "iconLinkOff",
|
||||
click() {
|
||||
updateCellsValue(protyle, blockElement, keyCellElement.querySelector(".av__celltext").textContent, [keyCellElement]);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
menu.addItem({
|
||||
icon: "iconTrashcan",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue