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

@udecode/plate-table

Package Overview
Dependencies
Maintainers
2
Versions
225
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@udecode/plate-table

Table plugin for Plate

  • 24.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
109K
decreased by-16.94%
Maintainers
2
Weekly downloads
 
Created

What is @udecode/plate-table?

@udecode/plate-table is a plugin for the Plate editor, which is a rich text editor built on top of Slate. This package provides table functionalities, allowing users to create, edit, and manage tables within the editor.

What are @udecode/plate-table's main functionalities?

Table Creation

This feature allows you to add table creation capabilities to your Plate editor instance. By including the `createTablePlugin` in your plugins array, users can insert tables into their documents.

import { createTablePlugin } from '@udecode/plate-table';

const plugins = [
  createTablePlugin(),
];

Table Editing

This feature provides the ability to edit existing tables within the editor. Users can modify table structure, such as adding or removing rows and columns, and adjust cell content.

import { createTablePlugin } from '@udecode/plate-table';

const plugins = [
  createTablePlugin(),
];

// Example of how to use the plugin to edit a table
const editor = usePlateEditorRef();
const table = getTableNode(editor);

if (table) {
  // Perform table editing operations
}

Table Formatting

This feature allows users to apply various formatting options to tables and their cells, such as bolding text, changing cell background colors, and adjusting cell alignment.

import { createTablePlugin } from '@udecode/plate-table';

const plugins = [
  createTablePlugin(),
];

// Example of how to use the plugin to format a table
const editor = usePlateEditorRef();
const table = getTableNode(editor);

if (table) {
  // Apply formatting to the table
  setTableCellProperties(editor, { bold: true });
}

Other packages similar to @udecode/plate-table

Keywords

FAQs

Package last updated on 18 Sep 2023

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