Jelajahi Sumber

:bug: fix https://github.com/siyuan-note/siyuan/issues/10586

Vanessa 1 tahun lalu
induk
melakukan
2ae6628c68
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/src/menus/protyle.ts

+ 1 - 1
app/src/menus/protyle.ts

@@ -728,7 +728,7 @@ export const contentMenu = (protyle: IProtyle, nodeElement: Element) => {
             selectAll(protyle, nodeElement, range);
             selectAll(protyle, nodeElement, range);
         }
         }
     }).element);
     }).element);
-    if (nodeElement.classList.contains("table")) {
+    if (nodeElement.classList.contains("table") && !protyle.disabled) {
         const cellElement = hasClosestByMatchTag(range.startContainer, "TD") || hasClosestByMatchTag(range.startContainer, "TH");
         const cellElement = hasClosestByMatchTag(range.startContainer, "TD") || hasClosestByMatchTag(range.startContainer, "TH");
         if (cellElement) {
         if (cellElement) {
             window.siyuan.menus.menu.append(new MenuItem({
             window.siyuan.menus.menu.append(new MenuItem({