Skip to main content
Apply bold emphasis to make text stand out. The most fundamental text formatting, preserving perfectly through Word import/export.

OOXML Structure

<w:r>
  <w:rPr>
    <w:b/>
  </w:rPr>
  <w:t>Bold text</w:t>
</w:r>

Use case

  • Headings - Visual hierarchy without changing size
  • Key terms - Highlight important concepts
  • Warnings - Draw immediate attention
  • Emphasis - Stronger than italic

Commands

setBold

Apply bold formatting to the current selection.
editor.commands.setBold()

unsetBold

Remove bold formatting from the current selection.
editor.commands.unsetBold()

toggleBold

Toggle bold formatting on the current selection.
editor.commands.toggleBold()

Keyboard shortcuts

CommandShortcutDescription
toggleBold()⌘/Ctrl-bToggle bold formatting
toggleBold()⌘/Ctrl-BToggle bold formatting (uppercase)

Source code