enhance(apis): add setFileContent method for built-in file paths

This commit is contained in:
charlie
2026-01-06 10:49:31 +08:00
parent 6c1b9fe77b
commit 8d7aaa791e

View File

@@ -871,6 +871,13 @@ export interface IEditorProxy extends Record<string, any> {
end: number
text: string
}>
/**
* For built-in files path `logseq/custom.js`, `logseq/custom.css`, `logseq/publish.js`, `logseq/publish.css` etc.
* @param path
* @param content
*/
setFileContent: (path: string, content: string) => Promise<void>
}
/**