Skip to content

Commit 7d75a5d

Browse files
save file
1 parent 9266916 commit 7d75a5d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

utils/editors/editor/v2.0/editor-v2.0.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,15 @@
114114

115115

116116
initdom(document.body);
117-
117+
118+
119+
window.electronAPI?.onOpenFile(async filePath=>{
120+
121+
var txt = await window.electronAPI.readFile(filePath);
122+
console.log(txt);
123+
124+
});
125+
118126

119127
}//init
120128

0 commit comments

Comments
 (0)