mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
a61878ac2c
commit
580d493f94
1 changed files with 2 additions and 1 deletions
|
|
@ -335,7 +335,8 @@ export class Toolbar {
|
|||
emptyNode = this.range.startContainer as HTMLElement;
|
||||
}
|
||||
}
|
||||
if (emptyNode && emptyNode.nodeType !== 3 && emptyNode.textContent.replace(Constants.ZWSP, "") === "") {
|
||||
if (emptyNode && emptyNode.nodeType !== 3 && emptyNode.textContent.replace(Constants.ZWSP, "") === "" &&
|
||||
!["TD", "TH"].includes(emptyNode.tagName)) {
|
||||
emptyNode.remove();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue