New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tiptap/extension-table

Package Overview
Dependencies
Maintainers
6
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-table

table extension for tiptap

  • 2.11.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
258K
decreased by-21.91%
Maintainers
6
Weekly downloads
 
Created

What is @tiptap/extension-table?

@tiptap/extension-table is an extension for the Tiptap editor that provides table functionalities. It allows users to create, edit, and manage tables within the Tiptap rich-text editor.

What are @tiptap/extension-table's main functionalities?

Create Table

This code demonstrates how to create a table with 3 rows and 3 columns in the Tiptap editor using the @tiptap/extension-table package.

import { Table } from '@tiptap/extension-table';
import { TableRow } from '@tiptap/extension-table-row';
import { TableCell } from '@tiptap/extension-table-cell';
import { TableHeader } from '@tiptap/extension-table-header';

const editor = new Editor({
  extensions: [
    Table.configure({ resizable: true }),
    TableRow,
    TableCell,
    TableHeader,
  ],
});

editor.chain().focus().insertTable({ rows: 3, cols: 3 }).run();

Add Row

This code demonstrates how to add a new row to an existing table in the Tiptap editor.

editor.chain().focus().addRowAfter().run();

Add Column

This code demonstrates how to add a new column to an existing table in the Tiptap editor.

editor.chain().focus().addColumnAfter().run();

Delete Table

This code demonstrates how to delete an existing table in the Tiptap editor.

editor.chain().focus().deleteTable().run();

Merge Cells

This code demonstrates how to merge selected cells in a table within the Tiptap editor.

editor.chain().focus().mergeCells().run();

Other packages similar to @tiptap/extension-table

Keywords

FAQs

Package last updated on 31 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc