Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:rotating_light:

Vanessa5d97f532f050
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts
index 3a41c8bfbd..edf7f5636f 100644
--- a/app/src/protyle/wysiwyg/keydown.ts
+++ b/app/src/protyle/wysiwyg/keydown.ts
@@ -1587,7 +1587,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
if (localFiles.length > 0) {
let fileText = ""
localFiles.forEach((item) => {
- fileText = `[${pathPosix().basename(item)}](${item})\n`;
+ fileText = `[${pathPosix().basename(item)}](file://${item})\n`;
});
insertHTML(protyle.lute.SpinBlockDOM(fileText), protyle);
} else {