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:Node types to apply alignment to
Available alignment options
Default text alignment
Attributes
Node attributes that can be set and retrieved:Text alignment value (left, center, right, justify)
Commands
setTextAlign
Set text alignment
Applies to all configured node types (heading, paragraph by default)
Alignment value (left, center, right, justify)
unsetTextAlign
Remove text alignment (reset to default)
Resets alignment to the default value
Keyboard Shortcuts
| Command | Shortcut | Description |
|---|---|---|
| setTextAlign(‘left’)() | ⌘/Ctrl-Shift-l | Align text left |
| setTextAlign(‘center’)() | ⌘/Ctrl-Shift-e | Align text center |
| setTextAlign(‘right’)() | ⌘/Ctrl-Shift-r | Align text right |
| setTextAlign(‘justify’)() | ⌘/Ctrl-Shift-j | Justify text |

