Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@udecode/plate-list
Advanced tools
@udecode/plate-list is a plugin for the Plate editor, which is a rich text editor framework built on top of Slate. This package provides functionality for creating and managing lists within the editor, including ordered lists, unordered lists, and nested lists.
Creating Unordered Lists
This code demonstrates how to set up a Plate editor with the list plugin to enable unordered list functionality.
import { createPlateUI, Plate } from '@udecode/plate';
import { createListPlugin } from '@udecode/plate-list';
const plugins = [
createListPlugin(),
];
const MyEditor = () => (
<Plate plugins={plugins} />
);
Creating Ordered Lists
This code shows how to configure the Plate editor to support ordered lists using the list plugin.
import { createPlateUI, Plate } from '@udecode/plate';
import { createListPlugin } from '@udecode/plate-list';
const plugins = [
createListPlugin(),
];
const MyEditor = () => (
<Plate plugins={plugins} />
);
Nested Lists
This example demonstrates how to enable nested list functionality in the Plate editor using the list plugin.
import { createPlateUI, Plate } from '@udecode/plate';
import { createListPlugin } from '@udecode/plate-list';
const plugins = [
createListPlugin(),
];
const MyEditor = () => (
<Plate plugins={plugins} />
);
slate-react is a package that provides React bindings for Slate, a completely customizable framework for building rich text editors. While it does not come with built-in list management, it allows developers to create custom plugins to handle lists, similar to @udecode/plate-list.
draft-js is a rich text editor framework by Facebook. It includes built-in support for lists, both ordered and unordered, but does not offer the same level of customization and extensibility as @udecode/plate-list.
prosemirror is a toolkit for building rich text editors. It provides extensive support for lists and other rich text features, but requires more setup and configuration compared to @udecode/plate-list.
This package implements the list plugin for Plate.
Check out List.
See the API documentation.
FAQs
List plugin for Plate
The npm package @udecode/plate-list receives a total of 70,211 weekly downloads. As such, @udecode/plate-list popularity was classified as popular.
We found that @udecode/plate-list demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.