Skip to content

Install | Tiptap Pagination

This package supports both Tiptap v2 and v3. Choose the installation command based on your Tiptap version:

Terminal window
# Install latest version (supports Tiptap v3)
npm install tiptap-pagination-plus@latest
# Or explicitly install the tiptap-v3 tag
npm install tiptap-pagination-plus@tiptap-v3
Terminal window
# Install the tiptap-v2 tag
npm install tiptap-pagination-plus@tiptap-v2

If you need table pagination support, install the table plus package based on your Tiptap version:

Terminal window
# Install latest version (supports Tiptap v3)
npm install tiptap-table-plus@latest
# Or explicitly install the tiptap-v3 tag
npm install tiptap-table-plus@tiptap-v3

Peer Dependencies for Tiptap v3:

Terminal window
npm install @tiptap/extension-table @tiptap/pm
Terminal window
# Install the tiptap-v2 tag
npm install tiptap-table-plus@tiptap-v2

Peer Dependencies for Tiptap v2:

Terminal window
npm install @tiptap/extension-table @tiptap/extension-table-cell @tiptap/extension-table-header @tiptap/extension-table-row @tiptap/pm

Note: Make sure you have the appropriate peer dependencies installed for your Tiptap version as they are required for the package to function properly. The package will not work without these Tiptap extensions and ProseMirror.


OptionTypeDefaultDescription
pageHeightnumber800Height of each page in pixels
pageWidthnumber789Width of each page in pixels
pageGapnumber50Gap between pages in pixels
pageGapBorderSizenumber1Border size for page gaps
pageGapBorderColorstring”#e5e5e5”Border color for page gaps
pageBreakBackgroundstring”#ffffff”Background color for page gaps
pageHeaderHeightnumber30Height of page header in pixels
pageFooterHeightnumber30Height of page footer in pixels
footerRightstring"{page}"Custom HTML content to display in the footer right side (supports multiline and rich text)
footerLeftstring""Custom HTML content to display in the footer left side (supports multiline and rich text)
headerRightstring""Custom HTML content to display in the header right side (supports multiline and rich text)
headerLeftstring""Custom HTML content to display in the header left side (supports multiline and rich text)
marginTopnumber20Top margin for pages
marginBottomnumber20Bottom margin for pages
marginLeftnumber50Left margin for pages
marginRightnumber50Right margin for pages
contentMarginTopnumber10Top margin for content within pages
contentMarginBottomnumber10Bottom margin for content within pages

Note: tiptap-pagination-plus extends the default Tiptap pagination extension with additional functionality.

tiptapplus.com is not an official Tiptap website and has no business affiliation with Tiptap.