Issue #2566💬 AnsweredOpened February 13, 2020by jdillon0011 reactions

Color picker default colors

快速解答by artf1

Read full answer below ↓

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, 2020
grapesjs.init({
	...
	colorPicker: {
		palette: [
			['#000000','#ff0000','#ff8000','#ffff00','#008000','#0000ff','#4b0082']
      	],
	}
})
jdillon001February 14, 2020

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

artfFebruary 24, 2020

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

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.