Text Color Leaf for Slate Editor
Adds a text color picker to the SlateJS editor in Payload.
Installation
pnpm add @wru/payloadcms-slate-plugin-textcolor-leaf About
This plugin integrates a simple color picker into the SlateJS editor used by Payload. It provides a predefined list of colors that users can choose from while editing text content. Integrating the text color picker is accomplished by adding `wruTextColorLeaf` to the Slate editor configuration in `payload.config.ts`. The plugin is designed to work with Payload CMS, enhancing the text editing experience with color options. To utilize the plugin, developers need to include specific colors in the configuration, allowing for a customized text color selection. The `name` property in the configuration helps identify the color picker, while the `colorList` can be modified to suit the project's branding or requirements. This plugin requires React and integrates smoothly with other parts of the Payload ecosystem.
Package info
- Package name
@wru/payloadcms-slate-plugin-textcolor-leaf- Latest version
0.1.0- Unpacked size
- 14 kB
- License
- MIT
- Weekly downloads
- 7
- Last publish
- Feb 10, 2024
More from we-are-you
View profileMedia Preview
Preview images, videos, audio, and documents directly in the Payload CMS admin panel.
BlurHash
Generates BlurHash placeholders for images in Payload CMS collections.
Blurhash
Automatically encodes images in Blurhash format for Payload CMS.
ImageKit
Sync images to ImageKit storage directly from Payload CMS.
Media Gallery
Replaces the Payload media collection list view with justified, masonry, and grid layouts plus a lightbox.
Video streaming
Enables video uploads and streaming directly within Payload CMS.