4

I want let the editor to choose an optional color via the color picker, but this didn't have the option 'no color' (or transparent).

Is there a solution to this? I use it a lot and have always to add a boolean switch so the editor can switch it on and off, but that's not the best way to do this.

2 Answers 2

2

At the moment there is no better solution for this. You could write a plugin that defines a new fieldtype.

1
  • There are now a couple of plugins - Spectrum mentioned below, and Hue Oct 16, 2017 at 12:59
0

I just put together a fieldtype using the jQuery colour picker Spectrum

enter image description here

It supports selecting no color and outputs a HEX of the colour, if chosen :)

Get the fieldtype on Github

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.