mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 14:42:33 +01:00
This commit is contained in:
parent
fba386be71
commit
19d9c455a7
4 changed files with 25 additions and 19 deletions
|
|
@ -1627,7 +1627,8 @@ export class Gutter {
|
|||
if (!tableElement.contains(range.startContainer)) {
|
||||
range = getEditorRange(tableElement.querySelector("th"));
|
||||
}
|
||||
const cellElement = hasClosestByTag(range.startContainer, "TD") || hasClosestByTag(range.startContainer, "TH");
|
||||
const cellElement = hasClosestByTag(range.startContainer, "TD") ||
|
||||
hasClosestByTag(range.startContainer, "TH") || nodeElement.querySelector("th, td");
|
||||
if (cellElement) {
|
||||
window.siyuan.menus.menu.append(new MenuItem({id: "separator_table", type: "separator"}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue