Issue #5739πŸ’¬ AnsweredOpened Mar 11, 2024by rhoenerSBS0 reactions

Wrong Type in ColorPickerOptions Interface

Quick answerby GJS Helper

This is indeed a valid bug report regarding the TypeScript type definitions in GrapesJS for the ColorPickerOptions interface. The preferredFormat property is incorrectly typed as boolean when it should be string according to the underlying Spectrum Colorpicker library's documentation. Root Cause The GrapesJS type defi...

Read full answer below ↓

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v122 Reproducible demo link not applicable Describe the bug The ColorPicker Interface that came with the latest release, defines the "preferredFormat" option to expect a 'boolean' value but the docs of the Spectrum Colorpicker indicate it has to be type 'string' (Docs: https://bgrins.github.io/spectrum/#options-preferredFormat) This leads to errors during compiling in TypeScript Projects. How to reproduce the bug?define ColorPicker "preferredFormat" option with value from the Spectrum docs...

Answers (1)

GJS Helperβ€’ May 17, 2026

This is indeed a valid bug report regarding the TypeScript type definitions in GrapesJS for the ColorPickerOptions interface. The preferredFormat property is incorrectly typed as boolean when it should be string according to the underlying Spectrum Colorpicker library's documentation. Root Cause Th...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.