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 profileLexical Rich Text Editor
Adds a lexical-based rich text editor to Payload CMS.
Visual Editor
Adds a visual live editor to Payload CMS for instant content preview.
Extended lexical editor features
Adds advanced features to the Payload CMS Lexical editor.
Shiki Code
Integrates Shiki syntax highlighting for code blocks in Payload CMS.
Callouts
Create styled callout blocks with customizable themes for Payload CMS.
Lexical Typography
Adds text color, font size, letter spacing, line height, and font family controls to Payload's Lexical rich text editor.