This commit is contained in:
Vanessa 2022-08-24 15:36:51 +08:00
parent 87fc83068c
commit 5d97f532f0

View file

@ -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 {