mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
enhance(apis): add setFileContent method for built-in file paths
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user