Skip to main content
The Paragraph extension allows you to create paragraph nodes. It’s one of the most basic and essential nodes for any editor.

Installation

Usage

The Paragraph extension is included in the StarterKit by default:
To use it standalone:

Configuration

HTMLAttributes

Custom HTML attributes to add to the rendered paragraph element.
Record<string, any>
default:"{}"
Custom HTML attributes that should be added to the rendered HTML tag.

Commands

setParagraph

Converts the current node to a paragraph.

Keyboard Shortcuts

  • Mod-Alt-0: Convert current node to paragraph

Source Code

View the source code on GitHub: packages/extension-paragraph/src/paragraph.ts