fn
resolveConfig
testedBuild a config with sensible defaults.
Signature
ts
export function resolveConfig(partial?: Partial<WritekitConfig>): WritekitConfig{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
partial? | Partial<WritekitConfig> | — |
Returns
WritekitConfig| Property | Type | Description |
|---|---|---|
editable | boolean | Whether content is editable (false renders read-only). |
platform | Platform | Platform for keybinding normalization (Mod → Cmd/Ctrl). |
dir | 'ltr' | 'rtl' | Text direction. |
spellcheck | boolean | Native spellcheck on the contenteditable hosts. |
draggable | boolean | Show per-block drag handles for reordering. |