Skip to content

isSpellcheckEnabledForMode

Resolves a SpellcheckMode against the Obsidian settings.

Import:

import { isSpellcheckEnabledForMode } from 'obsidian-dev-utils/obsidian/obsidian-settings';

Signature:

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

Parameters:

ParameterTypeDescription
appAppThe Obsidian app instance.
spellcheckModeSpellcheckModeThe mode to resolve.

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