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