Workspace
› on(‘quick-preview’)
Workspace.on(‘quick-preview’) method
Triggered when the active Markdown file is modified. React to file changes before they are saved to disk.
Signature:
on(name: 'quick-preview', callback: (file: TFile, data: string) => any, ctx?: any): EventRef;
Parameters
Parameter | Type | Description |
---|---|---|
name | ’quick-preview’ | |
callback | (file: TFile , data: string) ⇒ any | |
ctx | any | (Optional) |
Returns: