Skip to content

isSpellcheckEnabledForMode

Resolves a SpellcheckMode against the Obsidian settings.

Import:

import { isSpellcheckEnabledForMode } from '@mnaoumov/obsidian-lib/obsidian-settings';

Signature:

function isSpellcheckEnabledForMode(app: App, spellcheckMode: SpellcheckMode): boolean

Parameters:

Parameter Type Description
app App The Obsidian app instance.
spellcheckMode SpellcheckMode The mode to resolve.

Returns: boolean — Whether the input should be spell-checked.