Support for Text Colors in Bard Editor (Tiptap Color Extension)
Description:
I’d like to propose an enhancement to the Bard Editor in Statamic CMS by adding support for text color styling directly within the editor. This feature would be particularly helpful for content creators who want to apply visual emphasis or differentiate text using color.
Background:
The Bard Editor is built on top of Tiptap, a modular rich text editor framework. Tiptap provides a built-in Color Extension, which enables inline text color styling. To use this functionality, the following two extensions need to be included in the project:
- @tiptap/extension-text-style
- @tiptap/extension-color
Currently, these packages are not included in Statamic’s package.json, making it impossible to use the color feature without manually extending or modifying Bard.
Proposal:
Please consider adding these Tiptap extensions to Bard’s configuration, so that text color support is available out of the box. Ideally, this feature could be made optional via the field configuration—similar to how Bold, Italic, and other formatting options are toggled.
Thank you for considering this request!