We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
KodBox中的Draw.io插件是在插件的main.js中调用kodApp.pathAction.newFile('drawio')函数来新建文件的。但有一个问题,在桌面模式中,不管打开哪个文件夹,通过kodApp.pathAction只能获取“桌面”路径的信息,没法得到文件夹的信息,导致新建文件始终只会出现在桌面,如gif所示:
main.js
kodApp.pathAction.newFile('drawio')
The text was updated successfully, but these errors were encountered:
不知道有没有其他新建文件的函数
Sorry, something went wrong.
8ea02b6
8ea02b6 用以下判断来在桌面模式新建文件,确实可以在其他目录中新建了。但当打开多个目录窗口时,只能在最后打开的窗口中新建,其他目录窗口即使选中了也没用。仍未完善。
桌面
if(typeof(kodApp.root.pathAction)=="undefined"){ kodApp.pathAction.newFile('drawio'); } else { kodApp.root.pathAction.newFile('drawio'); }
No branches or pull requests
KodBox中的Draw.io插件是在插件的
main.js
中调用kodApp.pathAction.newFile('drawio')
函数来新建文件的。但有一个问题,在桌面模式中,不管打开哪个文件夹,通过kodApp.pathAction只能获取“桌面”路径的信息,没法得到文件夹的信息,导致新建文件始终只会出现在桌面,如gif所示:The text was updated successfully, but these errors were encountered: