Issue #2566Opened February 13, 2020by jdillon0011 reactions

[QUESTION] Color picker default colors

Question

Is there a way to set a number of default colours to appear at the top of the color picker?

Screenshot 2020-02-13 at 00 49 55

Answers (3)

artfFebruary 14, 20201 reactions
grapesjs.init({
	...
	colorPicker: {
		palette: [
			['#000000','#ff0000','#ff8000','#ffff00','#008000','#0000ff','#4b0082']
      	],
	}
})
jdillon001February 14, 20200 reactions

Thank you! This may sound stupid, but is this documented somewhere, as I didnt find it in the official docs

artfFebruary 24, 20200 reactions

No, unfortunately not yet, the idea was to make the color picker replaceable, so I've planned to document it once the new API was ready

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.