What is @ckeditor/ckeditor5-page-break?
@ckeditor/ckeditor5-page-break is a plugin for CKEditor 5 that allows users to insert page breaks into their content. This is particularly useful for content that will be printed or exported to PDF, as it helps to control the layout and pagination.
What are @ckeditor/ckeditor5-page-break's main functionalities?
Insert Page Break
This feature allows users to insert a page break into the content. The page break is represented by a horizontal line in the editor, and it ensures that the content following the break starts on a new page when printed or exported.
ClassicEditor.create(document.querySelector('#editor'), { plugins: [ PageBreak, ... ], toolbar: [ 'pageBreak', ... ] })
Custom Page Break Label
This feature allows users to customize the label of the page break. By default, the label is 'Page Break', but it can be changed to any custom text.
ClassicEditor.create(document.querySelector('#editor'), { plugins: [ PageBreak, ... ], toolbar: [ 'pageBreak', ... ], pageBreak: { label: 'My Custom Page Break' } })
0
44.3.0 (March 5, 2025)
We are happy to announce the release of CKEditor 5 v44.3.0.
Release Highlights
This release brings a couple of minor improvements and bug fixes:
- Link Decorators: We fixed the behavior of the multiple manual link decorators that set the
rel
attribute. The fix happened so deep in the engine that we improved the overall performance of the editor slightly as well. - Added a new
EmptyBlock
plugin: From now on, new plugin prevents adding
to the output data of blocks, works similarly to the fillEmptyBlocks
configuration in CKEditor 4. - Support for the
<hr>
element in the General HTML Support plugin enhanced: attributes of the <hr>
element are now properly preserved if configuration allows it. - Emoji: We enhanced emoji support for better compatibility with users' older devices.
For more details, see the changelog below.