defineInitHook
Unofficial
Registers a function to be called when an editor is initialized.
Import:
import type { defineInitHook } from '@obsidian-typings/obsidian-public-latest';Signature:
function defineInitHook(f: (cm: Cm5Editor) => void): voidParameters:
| Parameter | Type | Description |
|---|---|---|
f | (cm: Cm5Editor) => void | The initialization hook function. |
Returns: void