Add professional first-line indentation to paragraphs. Essential for academic papers, books, and formal documents with perfect Word compatibility.

OOXML Structure

<w:p>
  <w:pPr>
    <w:ind w:firstLine="720"/>
    <!-- 720 = 0.5 inches in twips -->
  </w:pPr>
  <w:r>
    <w:t>Indented paragraph text</w:t>
  </w:r>
</w:p>

Why you’d use this

  • Academic Papers - MLA/APA format requires 0.5” first-line indents
  • Books & Novels - Standard typography for fiction and non-fiction
  • Business Letters - Professional correspondence formatting
  • Block Quotes - Distinguish quoted material with deeper indents
  • Outlines - Create visual hierarchy with progressive indentation

Options

Configure the extension behavior:
types
Array.<string>
default:"['heading', 'paragraph']"
Node types to apply indentation to
defaults
Object
Default indentation settings
defaults.unit
string
default:"'in'"
Default unit for indentation (in, cm, px, etc.)
defaults.increment
number
default:"0.125"
Default increment/decrement value
Usage:
TextIndent.configure({
  resizable: false,
  cellMinWidth: 50
})

Attributes

textIndent
string
Text indentation value with unit (e.g., ‘0.5in’)

Commands

setTextIndent

Set text indentation
Accepts any valid CSS unit (in, cm, px, em, etc.)
// Set to 0.5 inches
setTextIndent('0.5in')

// Set to 2 centimeters
setTextIndent('2cm')
Parameters:
indent
string
required
Indentation value with unit (e.g., ‘0.5in’, ‘2cm’)

unsetTextIndent

Remove text indentation
Removes all indentation from the selected nodes
unsetTextIndent()

increaseTextIndent

Increase text indentation
Increments by the default value (0.125in by default)
increaseTextIndent()

decreaseTextIndent

Decrease text indentation
Decrements by the default value (0.125in by default)
decreaseTextIndent()

Types

IndentConfig

Text indent configuration