mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
5d97f532f0
commit
23e09027e7
2 changed files with 7 additions and 7 deletions
|
|
@ -718,7 +718,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
click() {
|
||||
let fileText = "";
|
||||
files.forEach((item) => {
|
||||
fileText = `[${pathPosix().basename(item)}](file://${item})\n`;
|
||||
fileText += `[${pathPosix().basename(item)}](file://${item})\n`;
|
||||
});
|
||||
insertHTML(protyle.lute.SpinBlockDOM(fileText), protyle);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1587,7 +1587,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
if (localFiles.length > 0) {
|
||||
let fileText = ""
|
||||
localFiles.forEach((item) => {
|
||||
fileText = `[${pathPosix().basename(item)}](file://${item})\n`;
|
||||
fileText += `[${pathPosix().basename(item)}](file://${item})\n`;
|
||||
});
|
||||
insertHTML(protyle.lute.SpinBlockDOM(fileText), protyle);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue