Skip to main content

SET_TEXT_FORMAT_COMMAND

const

Dispatched to explicitly set or unset text formats on the selection. Unlike FORMAT_TEXT_COMMAND which toggles, this command sets each specified format to the exact boolean value provided.

const SET_TEXT_FORMAT_COMMAND: LexicalCommand<Partial<Record<TextFormatType, boolean>>>

Import

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