From 5d97f532f050a1664e7a6bc3f19b4471683692d6 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 24 Aug 2022 15:36:51 +0800 Subject: [PATCH] :rotating_light: --- app/src/protyle/wysiwyg/keydown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts index 3a41c8bfb..edf7f5636 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 {