Opened 10 years ago

Last modified 3 years ago

#4994 confirmed New Feature

Add custom colors to More Colors dialog

Reported by: Bas Owned by:
Priority: Normal Milestone:
Component: UI : Dialogs Version: 3.0
Keywords: Cc:

Description

The More Colors dialog that reappeared in CKEditor 3.1 has 8 black color buttons filling the last slots in the bottom row of color buttons. It would be nice if these "filler" buttons could be overruled by custom color buttons defined in the custom configuration.

While it's already possible to add custom colors to the default color button menu via CKEDITOR.config.colorButton_colors, one or two custom color buttons look out of place there.

I would like to add a couple of colors used in our company style as buttons in the More Colors menu, allowing me to specify the color and its name (i.e. Company green) to use in the title text.

Change History (7)

comment:1 Changed 10 years ago by Bas

PS, this request is similar to #722, but requires much less customization.

#722 requests custom color palettes, whereas I only request the ability to add custom colors to the existing More Color dialog.

comment:2 Changed 10 years ago by Frederico Caldeira Knabben

Keywords: Pending added

Isn't the colorButton_colors setting enough?

comment:3 Changed 10 years ago by Bas

The colorButton_colors settings allows us to add custom colors, but not to define their name in the tool tip (because the string is not listed in the language file, the hexcode is shown instead).

The default colorButtont_colors make up a nice 5x8 grid, adding one or two colors breaks the even distribution of the buttons by having a 6th row with only one or two buttons.

These handful of custom buttons would, IMHO, be better placed in the More Colors dialog in the place where currently the 8 black buttons are placed to complete the 13x18 grind. I thought it would be nice to place our custom colors here, because the 8 black buttons don't provide colors that are not selectable in the default dialogs.

I hope this clarifies my reasoning.

comment:4 Changed 9 years ago by nelwa

The custom color names as indicated:

config.colorButton_colors = 'FontColor1/FF9900,FontColor2/0066CC,FontColor3/F00'

Doesn't seem to work. When configured the color names show correctly in the palette, but the color blocks are all white.

comment:5 Changed 8 years ago by Jakub Ś

Other tickets that fall under Select "Color Dialog Problems / Enchancements":
#8706, #8698, #8519, #8679, #8523, #8218, #5960, #8701, #5597, #11679, #14838.

Last edited 3 years ago by Jakub Ś (previous) (diff)

comment:6 Changed 8 years ago by Jakub Ś

Status: pendingconfirmed
Version: 3.0

comment:7 Changed 7 years ago by eltito

Using CKEditor 3.6.3 r7474.

I encounter the same problem. I can not use colors and names. I can just use short formated color value (ie : 0f0, not 00ff00). I removed this in ckeditor.js and now, I can use the long color value :

if(!A[1])B='#'+B.replace(/^(.)(.)(.)$/,'$1$1$2$2$3$3');
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy