Skip to main content
Show deletions and changes with strikethrough text. Visual indication of removed content while maintaining readability.

OOXML Structure

<w:r>
  <w:rPr>
    <w:strike/>
  </w:rPr>
  <w:t>Struck through text</w:t>
</w:r>

Use Case

  • Price changes - Show original vs sale price
  • Task lists - Mark completed items
  • Legal documents - Show deleted clauses
  • Editing - Track changes visually
  • Humor - Bad ideas Good ideas

Options

Configure the extension behavior:
htmlAttributes
Object
default:"{}"
HTML attributes for strikethrough elements

Commands

setStrike

Apply strikethrough formatting Example:
editor.commands.setStrike()

unsetStrike

Remove strikethrough formatting Example:
editor.commands.unsetStrike()

toggleStrike

Toggle strikethrough formatting Example:
editor.commands.toggleStrike()

Keyboard Shortcuts

CommandShortcutDescription
toggleStrike()⌘/Ctrl-Shift-sToggle strikethrough formatting

Source Code

I