# Page Break

> Editor42 Page Break plugin: inserts a page break placeholder, saved as a separator you can configure (an HTML comment by default) for print styles.

Source: https://editor42.com/plugins/pagebreak  
Every page of editor42.com has a Markdown copy at its URL + `.md` (`index.md` after a URL that ends in `/`); all of them are in one file: https://editor42.com/llms-full.txt

Plugin alias: `pagebreak`

```js
editor42.init({
  plugins: 'pagebreak'
});
```

Inserts a visual page break placeholder into the editor content. The placeholder is a special image element displayed in the editor; on serialization it is converted to a configurable HTML separator string (by default `<!-- pagebreak -->`), allowing print stylesheets or server-side processors to split content into pages.

## Options

| Option | Type | Default | Description |
|---|---|---|---|
| `pagebreak_separator` | string | `<!-- pagebreak -->` | HTML string representing a page break in output. |
| `pagebreak_split_block` | boolean | `false` | When true, wraps placeholder in a `<p>` and replaces the entire parent block on serialization. |

## Commands

| Command | Description |
|---|---|
| `editor42PageBreak` | Inserts a page break placeholder. |

## Toolbar buttons

| Button | Type | Description |
|---|---|---|
| `pagebreak` | Button | Inserts a page break. |

## Menu items

| Item | Description |
|---|---|
| `pagebreak` | Inserts a page break. |
