Socket
Socket
Sign inDemoInstall

@udecode/plate

Package Overview
Dependencies
Maintainers
2
Versions
453
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@udecode/plate

Plate – a plugin system for slate


Version published
Weekly downloads
111K
increased by1.11%
Maintainers
2
Weekly downloads
 
Created

What is @udecode/plate?

@udecode/plate is a highly customizable rich text editor framework for React. It provides a set of tools and plugins to create a feature-rich text editor with various functionalities such as text formatting, embedding media, and collaborative editing.

What are @udecode/plate's main functionalities?

Basic Text Formatting

This code demonstrates how to set up a basic text editor with text formatting capabilities such as bold, italic, and underline using @udecode/plate.

const withPlate = createPlateUI();
const editor = withPlate(createEditor());

const App = () => (
  <Plate editor={editor} plugins={basicElementsPlugins} />
);

Embedding Media

This code shows how to extend the basic text editor to support embedding media like images and videos using the mediaEmbedPlugin.

const withPlate = createPlateUI();
const editor = withPlate(createEditor());

const App = () => (
  <Plate editor={editor} plugins={[...basicElementsPlugins, mediaEmbedPlugin]} />
);

Collaborative Editing

This code demonstrates how to enable collaborative editing in the text editor using the collaborativeEditingPlugin.

const withPlate = createPlateUI();
const editor = withPlate(createEditor());

const App = () => (
  <Plate editor={editor} plugins={[...basicElementsPlugins, collaborativeEditingPlugin]} />
);

Other packages similar to @udecode/plate

Keywords

FAQs

Package last updated on 03 Feb 2022

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