This module provides integration with the Page Break plugin for CKEditor.

This plugin adds toolbar button which inserts horizontal page breaks. This feature is useful for setting document printing sections.

Text entered in a browser-based text editor such as CKEditor differs from word processors because it is not divided into physical pages. In effect, this plugins lets you define pages.

Requirements

3.x Release

2.x Release

Installation

Best way to install module is through composer. See below:

composer require drupal/pagebreak
drush en pagebreak
  1. Download the plugin from https://ckeditor.com/cke4/addon/pagebreak or https://asset-packagist.org/package/npm-asset/ckeditor--ckeditor5-page-b..., depending on version of CKEditor.
  2. Place the plugin in the root libraries folder (/libraries).
  3. Enable Page Break module in the Drupal admin.
  4. Drag the new Page Break button into your toolbar for the format of choice (only tested under Full HTML so far). See the following page:
    /admin/config/content/formats/manage/full_html
  5. Create some content, and within the editor, click the button for where you want to insert a page break for print.

A new icon will appear in your toolbar, drag it into your active toolbar to enable it. Simply place your cursor where you want it in the editor window, and click to insert a page break. Each page break will cause print setups to stop and create a new page. You can test this by creating a dummy page, filling it with content, adding some page breaks and going to File > Print and checking the preview.

For more information, please view README file.

Supporting organizations: 
Support & Development

Project information

Releases