fn

resolveConfig

tested

Build a config with sensible defaults.

Signature

ts
export function resolveConfig(partial?: Partial<WritekitConfig>): WritekitConfig{ ... }

Parameters

ParameterTypeDescription
partial?Partial<WritekitConfig>

Returns

WritekitConfig
PropertyTypeDescription
editablebooleanWhether content is editable (false renders read-only).
platformPlatformPlatform for keybinding normalization (Mod → Cmd/Ctrl).
dir'ltr' | 'rtl'Text direction.
spellcheckbooleanNative spellcheck on the contenteditable hosts.
draggablebooleanShow per-block drag handles for reordering.