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/9630
Vanessaec4da7cde782
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.jsonindex 864f2af21d..f92fcfd041 100644--- a/app/appearance/langs/en_US.json+++ b/app/appearance/langs/en_US.json@@ -1,4 +1,5 @@{+ "copyInline": "Copy inline element","unsplit": "Unsplit","unsplitAll": "Unsplit All","resetCardTip": "Are you sure reset ${x} flashcards?",diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.jsonindex 85392c961b..e9df8511a2 100644--- a/app/appearance/langs/es_ES.json+++ b/app/appearance/langs/es_ES.json@@ -1,4 +1,5 @@{+ "copyInline": "Copiar elemento en línea","unsplit": "Desdividir","unsplitAll": "Desdividir Todo","resetCardTip": "¿Estás seguro de restablecer ${x} tarjetas?",diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.jsonindex aeb0b90ab4..0727c71d12 100644--- a/app/appearance/langs/fr_FR.json+++ b/app/appearance/langs/fr_FR.json@@ -1,4 +1,5 @@{+ "copyInline": "Copier l'élément en ligne","unsplit": "Unsplit","unsplitAll": "Tout dédiviser","resetCardTip": "Êtes-vous sûr de réinitialiser ${x} flashcards ?",diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.jsonindex d7f78bc11f..106cd4a2ec 100644--- a/app/appearance/langs/zh_CHT.json+++ b/app/appearance/langs/zh_CHT.json@@ -1,4 +1,5 @@{+ "copyInline": "複製行級元素","unsplit": "取消分割畫面","unsplitAll": "取消全部分螢幕","resetCardTip": "確定重設 ${x} 張閃卡?",diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.jsonindex 403a96b641..c4e2f03a89 100644--- a/app/appearance/langs/zh_CN.json+++ b/app/appearance/langs/zh_CN.json@@ -1,4 +1,5 @@{+ "copyInline": "复制行级元素","unsplit": "取消分屏","unsplitAll": "取消全部分屏","resetCardTip": "确定重置 ${x} 张闪卡?",diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.tsindex 145fa468a5..3a968f9e88 100644--- a/app/src/menus/protyle.ts+++ b/app/src/menus/protyle.ts@@ -655,6 +655,20 @@ export const contentMenu = (protyle: IProtyle, nodeElement: Element) => {updateTransaction(protyle, nodeElement.getAttribute("data-node-id"), nodeElement.outerHTML, oldHTML);}}).element);+ } else {+ // https://github.com/siyuan-note/siyuan/issues/9630+ const inlineElement = hasClosestByMatchTag(range.startContainer, "SPAN")+ if (inlineElement) {+ const inlineTypes = protyle.toolbar.getCurrentType(range);+ if (inlineTypes.includes("code") || inlineTypes.includes("kbd")) {+ window.siyuan.menus.menu.append(new MenuItem({+ label: window.siyuan.languages.copyInline,+ click() {+ copyPlainText(inlineElement.textContent);+ }+ }).element);+ }+ }}if (!protyle.disabled) {window.siyuan.menus.menu.append(new MenuItem({