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

Options

Configure the extension behavior:
htmlAttributes
Object
HTML attributes for the strong element

Attributes

Node attributes that can be set and retrieved:
value
string
Bold weight value (‘0’ renders as normal)

Commands

setBold

Apply bold formatting
‘0’ renders as normal weight
Example:
editor.commands.setBold()

unsetBold

Remove bold formatting Example:
editor.commands.unsetBold()

toggleBold

Toggle bold formatting Example:
editor.commands.toggleBold()

Keyboard Shortcuts

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

Source Code

I