Skip to main content
Flexible inline blocks for horizontal rules, spacers, and custom dividers. Preserves special Word content like shapes and drawings through import/export.

OOXML Structure

Use case

  • Section Breaks - Visually separate different parts of your document
  • Horizontal Rules - Classic divider between content sections
  • Spacers - Add precise vertical spacing without empty paragraphs
  • Custom Dividers - Brand-colored separators for professional documents
  • Shape Preservation - Maintains Word shapes and drawings through import/export
  • Layout Control - Fine-tune document appearance with inline blocks

Options

Configure the extension behavior:
Object
HTML attributes for the block element

Attributes

Node attributes that can be set and retrieved:
boolean
default:"false"
Whether this block is a horizontal rule
ContentBlockSize
Size and position of the content block
string
Background color for the block

Commands

insertHorizontalRule

Insert a horizontal rule
Creates a visual separator between content sections
Example:

insertContentBlock

Insert a content block
Used for spacing, dividers, and special inline content
Example:
Parameters:
ContentBlockConfig
required
Block configuration

Types

ContentBlockSize

Size configuration for content blocks

ContentBlockConfig

Content block configuration

Source code