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 {