Paragraph Plugin
The Paragraph plugin provides the fundamental text block for your editor. It’s the default block type and supports all text formatting marks.Installation
Usage
Features
- Plain text content with mark support (bold, italic, etc.)
- Keyboard shortcuts:
p,text - HTML, Markdown, and Email export
- Supports alignment (left, center, right)
- Supports nesting via depth
Options
The paragraph plugin is configured with these default options:Element Type
Commands
The Paragraph plugin exportsParagraphCommands for programmatic manipulation:
Parsers
HTML
Deserialize: Converts<p> tags to paragraph blocks
Serialize: Outputs paragraph with alignment and depth metadata
Markdown
Examples
Basic Usage
Programmatic Insertion
Using Element Builder
Related
- Headings Plugin - Section headings
- Blockquote Plugin - Quoted text
- Marks - Text formatting options