Page Break
Plugin alias: pagebreak
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. |