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: fix https://github.com/siyuan-note/siyuan/issues/6753
Vanessa94812ef11c94
diff --git a/app/src/menus/Menu.ts b/app/src/menus/Menu.tsindex 0da19fe523..48f84cc57e 100644--- a/app/src/menus/Menu.ts+++ b/app/src/menus/Menu.ts@@ -178,8 +178,8 @@ const getActionMenu = (element: Element, next: boolean) => {}}return actionMenuElement;-};+export const bindMenuKeydown = (event: KeyboardEvent) => {if (window.siyuan.menus.menu.element.classList.contains("fn__none") || event.altKey || event.shiftKey || isCtrl(event)) {return false;diff --git a/app/src/protyle/toolbar/Link.ts b/app/src/protyle/toolbar/Link.tsindex fff67c79e5..063c4bb695 100644--- a/app/src/protyle/toolbar/Link.ts+++ b/app/src/protyle/toolbar/Link.ts@@ -26,12 +26,11 @@ export class Link extends ToolbarItem {return;}- const rangeString = range.toString().trim();+ const rangeString = range.toString().trim().replace(Constants.ZWSP, "");let dataHref = "";let dataText = "";try {const clipText = await readText();-// 选中链接时需忽略剪切板内容 https://ld246.com/article/1643035329737if (protyle.lute.IsValidLinkDest(rangeString)) {dataHref = rangeString;@@ -62,7 +61,7 @@ export const removeLink = (linkElement: HTMLElement, range: Range) => {const types = linkElement.getAttribute("data-type").split(" ");if (types.length === 1) {const linkParentElement = linkElement.parentElement;- linkElement.outerHTML = linkElement.innerHTML + "<wbr>";+ linkElement.outerHTML = linkElement.innerHTML.replace(Constants.ZWSP, "") + "<wbr>";focusByWbr(linkParentElement, range);} else {types.find((itemType, index) => {