mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
This commit is contained in:
parent
1cdc80e1bd
commit
a3aa3d537b
2 changed files with 2 additions and 2 deletions
|
|
@ -886,7 +886,7 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement:
|
|||
type: "separator"
|
||||
});
|
||||
}
|
||||
if (!hasNone || (hasNone && !hasRowSpan && hasColSpan)) {
|
||||
if ((!hasNone && !hasRowSpan) || (hasNone && !hasRowSpan && hasColSpan)) {
|
||||
menus.push({
|
||||
icon: "iconDeleteRow",
|
||||
label: window.siyuan.languages["delete-row"],
|
||||
|
|
|
|||
|
|
@ -576,7 +576,7 @@ export const fixTable = (protyle: IProtyle, event: KeyboardEvent, range: Range)
|
|||
|
||||
// 删除当前行
|
||||
if (matchHotKey(window.siyuan.config.keymap.editor.table["delete-row"].custom, event)) {
|
||||
if (!hasNone || (hasNone && !hasRowSpan && hasColSpan)) {
|
||||
if ((!hasNone && !hasRowSpan) || (hasNone && !hasRowSpan && hasColSpan)) {
|
||||
deleteRow(protyle, range, cellElement, nodeElement);
|
||||
}
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue