Skip to main content

toggleTextFormatType

function

Toggles the given text format type on a format bitmask, clearing mutually exclusive formats (subscript/superscript, lowercase/uppercase/capitalize).

function toggleTextFormatType(format: number, type: TextFormatType, alignWithFormat: null | number): number

Import

import { toggleTextFormatType } from '@modular/sdk/editor';