Skip to main content
Control paragraph and heading alignment for professional document layouts. Perfect Word import/export compatibility for all alignment options.

OOXML Structure

Use case

  • Titles & Headings - Center important headings for emphasis
  • Quotes - Right-align attributions or center block quotes
  • Formal Documents - Justify body text for professional appearance
  • Letters - Right-align dates and signatures
  • Poetry - Center verses for artistic presentation

Options

Configure the extension behavior:
Array<string>
default:"['left','center','right','justify']"
Available alignment options

Commands

setTextAlign

Set text alignment on the current paragraph. Example:
Parameters:
string
required
Alignment value (left, center, right, justify)

unsetTextAlign

Remove text alignment (reset to default)
Resets alignment to the default value
Example:

Keyboard shortcuts

Source code