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