Files
tiptap/docs/src/docPages/api/extensions/paragraph.md
2020-09-24 19:10:22 +02:00

1.2 KiB
Raw Blame History

Paragraph

Yes, the schema is very strict. Without this extension you wont even be able to use paragraphs in the editor.

:::warning Breaking Change from 1.x → 2.x Tiptap 1 tried to hide that node from you, but it has always been there. You have to explicitly import it from now on (or use defaultExtensions()). :::

Installation

# With npm
npm install @tiptap/extension-paragraph

# Or: With Yarn
yarn add @tiptap/extension-paragraph

Settings

Option Type Default Description
class string Add a custom class to the rendered HTML tag.

Commands

Command Options Description
paragraph Transforms all selected nodes to paragraphs.

Keyboard shortcuts

  • Windows & Linux: Control Alt 0
  • macOS: Cmd Alt 0

Source code

packages/extension-paragraph/

Usage