Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@tiptap/extension-table-cell
Advanced tools
@tiptap/extension-table-cell is an extension for the Tiptap editor that provides functionality for working with table cells. It allows you to create, manipulate, and style table cells within the Tiptap rich-text editor.
Create Table Cell
This feature allows you to create a table cell within the Tiptap editor. By including the TableCell extension, you can add table cells to your editor.
import { TableCell } from '@tiptap/extension-table-cell';
const editor = new Editor({
extensions: [
TableCell,
],
});
Set Cell Attributes
This feature allows you to set custom attributes for table cells. In this example, a custom class is added to the table cells.
import { TableCell } from '@tiptap/extension-table-cell';
const editor = new Editor({
extensions: [
TableCell.configure({
HTMLAttributes: {
class: 'my-custom-class',
},
}),
],
});
Merge Cells
This feature allows you to merge multiple table cells into one. The mergeCells command is used to perform the merge operation.
import { TableCell, mergeCells } from '@tiptap/extension-table-cell';
const editor = new Editor({
extensions: [
TableCell,
],
});
// Example function to merge cells
editor.commands.mergeCells();
prosemirror-tables is a ProseMirror plugin that provides table-related functionality. It allows you to create and manipulate tables within a ProseMirror editor. Compared to @tiptap/extension-table-cell, prosemirror-tables is more low-level and requires more manual setup.
slate-tables is a plugin for the Slate editor that adds support for tables. It provides similar functionality to @tiptap/extension-table-cell, such as creating and manipulating table cells. However, it is designed specifically for the Slate editor.
draft-js-table-plugin is a plugin for Draft.js that adds table support. It allows you to create and edit tables within a Draft.js editor. While it offers similar features to @tiptap/extension-table-cell, it is tailored for use with Draft.js.
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 cell extension for tiptap
The npm package @tiptap/extension-table-cell receives a total of 219,876 weekly downloads. As such, @tiptap/extension-table-cell popularity was classified as popular.
We found that @tiptap/extension-table-cell demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.