TextFileView.loadFileInternal method
TextFileView › loadFileInternal
Unofficial
Load a file into the editor, optionally clearing existing content.Signature:
loadFileInternal(file: TFile, clear: boolean): Promise<unknown>Parameters:
| Parameter | Type | Description |
|---|---|---|
| file | TFile | The file to load. |
| clear | boolean | Whether to clear the existing content before loading. |
Returns: Promise<unknown> — A promise that resolves when the file is loaded.
Since: 0.10.12