Function: Format()

July 19, 2026 ยท View on GitHub

API


Function: Format()

Format<T, N, K>(editor, key, value, range?): void

Defined in: commands.ts:85

Format content in the selection or specified range.

Type Parameters

T

T extends DocNode

N

N extends Omit<InferTextNode<T>, "text">

K

K extends string

Parameters

editor

Editor<T>

key

K

value

N[K]

range?

Range = ...

Returns

void

Contents

  1. 1Type Parameters
  2. 1.1T
  3. 1.2N
  4. 1.3K
  5. 2Parameters
  6. 2.1editor
  7. 2.2key
  8. 2.3value
  9. 2.4range?
  10. 3Returns