Skip to content
Prompt Design Hire Developer

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.

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.

editor.chain().focus().togglePagination().run()

Flips pagination between enabled and disabled.

editor.chain().focus().enablePagination().run()

Turns pagination on.

editor.chain().focus().disablePagination().run()

Turns pagination off.

Commands update editor.storage.PaginationPlus.enabled. Use it to sync switches or menu labels:

editor.chain().focus().togglePagination().run()
const isOn = editor.storage.PaginationPlus.enabled
editor.chain().focus().disablePagination().run()
// ... edit in continuous mode ...
editor.chain().focus().enablePagination().print().run()
tiptapplus.com is not an official Tiptap website and has no business affiliation with Tiptap.