Enable / Disable Pagination | Tiptap Pagination
Turn paginated layout on or off without removing the extension. When pagination is off, page-break decorations are not applied and the editor behaves more like a continuous document; margins and width styling from the extension still apply.
Initial state (enabled)
Section titled “Initial state (enabled)”Set the default when you register the extension:
PaginationPlus.configure({ enabled: false, // start with pagination off})The default is true. All options are listed on Install & Configuration.
Commands
Section titled “Commands”togglePagination
Section titled “togglePagination”editor.chain().focus().togglePagination().run()Flips pagination between enabled and disabled.
enablePagination
Section titled “enablePagination”editor.chain().focus().enablePagination().run()Turns pagination on.
disablePagination
Section titled “disablePagination”editor.chain().focus().disablePagination().run()Turns pagination off.
Reading state (toolbar / UI)
Section titled “Reading state (toolbar / UI)”Commands update editor.storage.PaginationPlus.enabled. Use it to sync switches or menu labels:
editor.chain().focus().togglePagination().run()
const isOn = editor.storage.PaginationPlus.enabledExample: continuous editing then print
Section titled “Example: continuous editing then print”editor.chain().focus().disablePagination().run()// ... edit in continuous mode ...
editor.chain().focus().enablePagination().print().run()See also
Section titled “See also”- Commands — full command reference table
- Install & Configuration —
enabledand other options