Socket
Socket
Sign inDemoInstall

@tiptap/extension-table-row

Package Overview
Dependencies
Maintainers
4
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-table-row

table row extension for tiptap


Version published
Maintainers
4
Created

What is @tiptap/extension-table-row?

@tiptap/extension-table-row is an extension for the Tiptap editor that allows you to add and manage table rows within your rich text editor. It provides functionalities to create, manipulate, and customize table rows, making it easier to handle tabular data in a user-friendly way.

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

Add Table Row

This feature allows you to add a new row to an existing table in the Tiptap editor. The code sample demonstrates how to import the TableRow extension and use the `insertTableRow` command to add a new row.

import { TableRow } from '@tiptap/extension-table-row';

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

// Add a new row to the table
editor.chain().focus().insertTableRow().run();

Delete Table Row

This feature allows you to delete a row from an existing table in the Tiptap editor. The code sample demonstrates how to use the `deleteTableRow` command to remove the current row.

import { TableRow } from '@tiptap/extension-table-row';

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

// Delete the current row from the table
editor.chain().focus().deleteTableRow().run();

Move Table Row

This feature allows you to move a row up or down within a table in the Tiptap editor. The code sample demonstrates how to use the `moveTableRow` command with a parameter to move the current row up or down.

import { TableRow } from '@tiptap/extension-table-row';

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

// Move the current row up
editor.chain().focus().moveTableRow(-1).run();

// Move the current row down
editor.chain().focus().moveTableRow(1).run();

Other packages similar to @tiptap/extension-table-row

Keywords

FAQs

Package last updated on 14 May 2024

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