@remirror/extension-paragraph
Group your words into paragraphs and render each statement a harmonious symphony.

Installation
yarn add @remirror/extension-paragraph@next @remirror/pm@next
pnpm add @remirror/extension-paragraph@next @remirror/pm@next
npm install @remirror/extension-paragraph@next @remirror/pm@next
Usage
When added to your editor it will provide the insertParagraph
which inserts a paragraph into the
editor.
import { RemirrorManager, ExtensionPriority } from '@remirror/core';
import { ParagraphExtension } from '@remirror/extension-paragraph';
import { DocExtension } from '@remirror/extension-doc';
import { TextExtension } from '@remirror/extension-text';
const paragraphExtension = new ParagraphExtension();
const docExtension = new DocExtension({ priority: ExtensionPriority.Low });
const textExtension = new TextExtension({ priority: ExtensionPriority.Low });
const manager = RemirrorManager.create([paragraphExtension, docExtension, textExtension]);
const element = document.createElement('div');
document.body.appendChild(element);
manager.addView(element);
manager.commands.insertParagraph();
Alternatives
There are several presets which contain this extension and make the installation process less
verbose. AS a result you probably won't ever need to manage it directly.
@remirror/preset-core
@remirror/preset-formatting
Credits
This package was bootstrapped with monots.