colorSwatches

Availability: >= 3.0

Type: Object Property

Description: Sets custom color swatches to appear on the color picker.

Syntax:

$editor->colorSwatches = array $swatches

The value should be an array of colors. You can use this property to provide users with easy access to colors used throughout your website or web application.

Example: 

$editor->colorSwatches = array('#00336','#000033','#000066','#eeeeee');

See also:

addColorSwatch