An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:rotating_light:
Vanessa6b918c82a908
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.tsindex f37ba244fb..fcaa31dca5 100644--- a/app/src/menus/protyle.ts+++ b/app/src/menus/protyle.ts@@ -1126,7 +1126,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLElemeimgElement.setAttribute("src", value);imgElement.setAttribute("data-src", value);const imgNetElement = assetElement.querySelector(".img__net");- if (value.startsWith("assets/")) {+ if (value.startsWith("assets/") || value.startsWith("data:image/")) {if (imgNetElement) {imgNetElement.remove();}diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex 26d963effa..87a6d16bbe 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -628,7 +628,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {const tdElement = hasClosestByTag(range.startContainer, "TD") || hasClosestByTag(range.startContainer, "TH");let tdStatus;if (tdElement) {- const cells = nodeElement.querySelectorAll('td, th');+ const cells = nodeElement.querySelectorAll("td, th");if (cells[cells.length - 1] === tdElement) {tdStatus = "last";}diff --git a/app/src/util/fetch.ts b/app/src/util/fetch.tsindex caf6f1a218..5efb555391 100644--- a/app/src/util/fetch.ts+++ b/app/src/util/fetch.ts@@ -10,7 +10,7 @@ export const fetchPost = (data?: any,cb?: (response: IWebSocketData) => void,headers?: IObject,- failCallback?: (response: IWebSocketData) => void,) => {+ failCallback?: (response: IWebSocketData) => void) => {const init: RequestInit = {method: "POST",};