Skip to content

Text Align

The Text Align extension allows you to align text in the editor.

Usage

tsx
import { TextAlign } from 'reactjs-tiptap-editor/textalign'; 

const extensions = [
  ...,
  // Import Extensions Here
  TextAlign 
];

Options

shortcutKeys

Type: string[][]
Default: [['mod', 'shift', 'L'], ['mod', 'shift', 'E'], ['mod', 'shift', 'R'], ['mod', 'shift', 'J']]

Keyboard shortcuts for the extension (left, center, right & justify).

Source

SourceDocs

Contributors

Changelog

v0.3.28 on 10/13/2025
20125 - feat: add shortcutKeys override(s) to extensions

Made with ❤️