Overview
The Paragraph plugin is the fundamental building block of any document. It provides basic text formatting and should always be included in your editor configuration.Installation
Basic Usage
Features
- Plain Text: Write unformatted text
- Text Marks: Supports bold, italic, underline, etc.
- Alignment: Left, center, right alignment
- Keyboard Shortcuts: Type
portextto insert - Default Block: Typically the default block type
- Indentation: Support for nested indentation
Configuration
The Paragraph plugin works out of the box with minimal configuration:Options
Keyboard shortcuts to trigger the plugin
Commands
Access paragraph commands viaeditor.blocks:
Custom Rendering
With Custom Styling
Parsers
HTML Deserialization
The plugin automatically deserializes<p> tags:
HTML Serialization
Markdown Serialization
Email Serialization
The plugin provides email-compatible HTML with inline styles:Text Marks
The Paragraph plugin supports all standard text marks:- Bold: Ctrl/Cmd + B
- Italic: Ctrl/Cmd + I
- Underline: Ctrl/Cmd + U
- Strikethrough: Ctrl/Cmd + Shift + S
- Code: Ctrl/Cmd + E
- Links: Ctrl/Cmd + K
Block Metadata
Each paragraph block can have metadata:Use Cases
Blog Posts
Main body text for articles and posts
Documentation
Descriptive text in technical docs
Landing Pages
Marketing copy and descriptions
Notes
Quick notes and text entries
Best Practices
Always Include Paragraph
Always Include Paragraph
The Paragraph plugin should always be included as it’s typically the default block type
Use as Default
Use as Default
Configure Paragraph as the default block type for new content
Keep It Simple
Keep It Simple
The Paragraph plugin should remain simple - use other plugins for complex formatting
Combine with Marks
Combine with Marks
Use text marks (bold, italic) for inline formatting within paragraphs
Extensions
The Paragraph plugin includes custom Slate extensions for normalized behavior:withParagraph
- Text normalization
- Empty paragraph handling
- Consistent whitespace behavior
Advanced Patterns
With Drop Caps
With Character Count
Related Plugins
- Headings Plugin - For titles and headings
- Blockquote Plugin - For quoted text
- Code Plugin - For code blocks