![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@tiptap/extension-table
Advanced tools
@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.
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();
prosemirror-tables is a plugin for ProseMirror that provides table functionalities. It offers similar features to @tiptap/extension-table, such as creating, editing, and managing tables. However, it is designed specifically for the ProseMirror editor and may require more configuration compared to Tiptap's extension.
slate-tables is a plugin for the Slate editor that adds table functionalities. It allows users to create and manipulate tables within the Slate rich-text editor. While it offers similar features to @tiptap/extension-table, it is tailored for use with the Slate editor and may have different APIs and configuration options.
draft-js-table-plugin is a plugin for the Draft.js editor that provides table functionalities. It enables users to create and manage tables within the Draft.js editor. Like @tiptap/extension-table, it offers features for table manipulation, but it is designed specifically for Draft.js and may have different implementation details.
Tiptap is a headless wrapper around ProseMirror – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as New York Times, The Guardian or Atlassian.
Documentation can be found on the Tiptap website.
Tiptap is open sourced software licensed under the MIT license.
FAQs
table extension for tiptap
The npm package @tiptap/extension-table receives a total of 241,040 weekly downloads. As such, @tiptap/extension-table popularity was classified as popular.
We found that @tiptap/extension-table demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.