Skip to content

Type Editor


Type Editor / @type-editor/commands / clear-text-formatting

clear-text-formatting

Functions

FunctionDescription

clearTextFormatting

Removes common text formatting marks from the current selection.

This command removes the following mark types if they exist in the schema:

  • strong (bold)
  • em (italic)
  • underline
  • link