---
title: "Page Break plugin"
description: "Add a page break."
canonical_url: "https://www.tiny.cloud/docs/tinymce/latest/pagebreak/"
md_url: "https://www.tiny.cloud/docs/tinymce/5/pagebreak/index.md"
version: "5"
last_updated: "2024-04-16T01:50:26Z"
tokens: 409
---
Important This page documents TinyMCE 5. For new projects, Tiny recommends using the latest, most up-to-date version. [See TinyMCE 8 documentation](../../latest/pagebreak/).
# Page Break plugin

This plugin adds page break support and enables a user to insert page breaks in the editable area. This is useful where a CMS uses a special separator to break content into pages.

It also adds a toolbar button and a menu item `Page break` under the `Insert` menu dropdown.

## Basic setup

```js
tinymce.init({
  selector: 'textarea',  // change this value according to your html
  plugins: 'pagebreak',
  menubar: 'insert',
  toolbar: 'pagebreak'
});
```

## Options

These settings affect the execution of the `pagebreak` plugin. They enable you to specify how the page break should be generated in the HTML source code and determine whether the page break element(s) should be wrapped in `<p>` tags `</p>`.

### `pagebreak_separator`

**Type:** `String`

**Default Value:** `"<!-- pagebreak -->"`

#### Example: Using `pagebreak_separator`

```js
tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  plugins: 'pagebreak',
  menubar: 'insert',
  toolbar: 'pagebreak',
  pagebreak_separator: '<!-- my page break -->'
});
```

### `pagebreak_split_block`

When enabled this option makes it easier to split block elements with a page break.

**Type:** `Boolean`

**Default Value:** `false`

**Possible Values:** `true`, `false`

#### Example: Using `pagebreak_split_block`

```js
tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  plugins: 'pagebreak',
  menubar: 'insert',
  toolbar: 'pagebreak',
  pagebreak_split_block: true
});
```
