Sign up (with export icon)

PaginationConfig

Api-interface icon interface

The configuration of the pagination feature. It is used by the pagination feature from the @ckeditor/ckeditor5-pagination package.

ClassicEditor
	.create( editorElement, {
		pagination: {
			// A4
			pageWidth: '21cm',
			pageHeight: '29.7cm',

			pageMargins: {
				top: '20mm',
				bottom: '20mm',
				left: '12mm',
				right: '12mm'
			}
		}
	} )
	.then( ... )
	.catch( ... );
Copy code

NOTE: The configuration of the plugin must match the export to PDF or export to Word feature configuration.

See all editor options.

Properties

  • Chevron-right icon

    enableOnUnsupportedBrowsers : boolean | undefined

    The pagination feature is by default enabled only in browsers that are using the Blink engine (Chrome, Chromium, newer Edge, newer Opera). This is due to some existing incompatibilities in Firefox and Safari; we will be working on them in the future.

    This behavior can be modified by setting this configuration value to true.

    Defaults to false

  • Chevron-right icon

    pageHeight : string

    The page height.

  • Chevron-right icon

    The page margins.

  • Chevron-right icon

    pageWidth : string

    The page width.