Skip to content

Latest commit

 

History

History
81 lines (63 loc) · 2.16 KB

File metadata and controls

81 lines (63 loc) · 2.16 KB
title tags meta extension
TableKit extension
title description category
TableKit extension | Tiptap Editor Docs
All necessary table extensions in one extension with TableKit. Perfect for quickly setting up tables with Tiptap. More in the docs!
Editor
name link description type icon
TableKit
All necessary table extensions in one. It doesn’t get much better than this.
extension
Package

import { CodeDemo } from '@/components/CodeDemo'

The TableKit is a collection of all necessary Tiptap table extensions. If you quickly want to setup tables in Tiptap, this extension is for you.

Install

npm install @tiptap/extension-table

Included extensions

Nodes

Source code

packages/extension-table/

Using the TableKit extension

Pass TableKit to the editor to load all included extension at once.

import { Editor } from '@tiptap/core'
import { TableKit } from '@tiptap/extension-table'

const editor = new Editor({
  extensions: [TableKit],
})

You can configure the included extensions, or even disable a few of them, like shown below.

import { Editor } from '@tiptap/core'
import { TableKit } from '@tiptap/extension-table'

const editor = new Editor({
  extensions: [
    TableKit.configure({
      // Disable an extension
      tableRow: false,

      // Configure an extension
      tableCell: {
        HTMLAttributes: { class: 'list-item' },
      },
    }),
  ],
})