Skip to main content

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

OptionTypeDefaultDescription
pagebreak_separatorstring'<!-- pagebreak -->'HTML string representing a page break in output.
pagebreak_split_blockbooleanfalseWhen true, wraps placeholder in a <p> and replaces the entire parent block on serialization.

Commands

CommandDescription
editor42PageBreakInserts a page break placeholder.

Toolbar buttons

ButtonTypeDescription
pagebreakButtonInserts a page break.
ItemDescription
pagebreakInserts a page break.