Every extension

hardBreak

Node in starterKit 0.06 kB gzipped

Parses br · renders br.

Adding it

import { createEditor, document, paragraph, text, hardBreak } from '@matrajs/core'

const editor = createEditor({
  extensions: [document, paragraph, text, hardBreak],
  element: document.querySelector('#editor'),
})

There is no separate package · hardBreak is already in @matrajs/core, and an extension you do not import is not in your bundle. document, paragraph and text are the floor every document needs.

Commands

Keys

HTML

← All 81 extensions

Edit this page on GitHub