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 profileOpenAPI
Generates OpenAPI specifications from Payload CMS configurations.
GraphQL View
Adds a GraphQL view with IDE support to Payload collections and globals.
Query
Type-safe query filters and field selection for Payload, with a REST select parameter plugin.
create api docs
Generate OpenAPI 3 documentation for Payload CMS.
Swagger
Swagger plugin for Payload CMS that generates OpenAPI documentation.
OpenAPI
Generate OpenAPI 3 documentation for Payload CMS endpoints.