An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 光标在表格中,选中其他块标后按删除按钮无效
Vanessa01e4f02e95fb
diff --git a/app/src/protyle/util/table.ts b/app/src/protyle/util/table.tsindex 01e059020b..2292427baf 100644--- a/app/src/protyle/util/table.ts+++ b/app/src/protyle/util/table.ts@@ -385,7 +385,11 @@ export const fixTable = (protyle: IProtyle, event: KeyboardEvent, range: Range)if (!cellElement || !nodeElement) {return false;}-+ // 光标在表格中,选中其他块标后按删除按钮无效+ const selectedElement = protyle.wysiwyg.element.querySelector(".protyle-wysiwyg--select");+ if (selectedElement && !selectedElement.contains(cellElement)) {+ return false;+ }if (event.key === "Backspace" && range.toString() === "") {const previousElement = hasPreviousSibling(range.startContainer) as Element;if (range.startOffset === 1 && previousElement.nodeType === 1 && previousElement.tagName === "BR" &&