This is a migrated thread and some comments may be shown as answers.

Editor foreColor Palette

4 Answers 350 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Glyn
Top achievements
Rank 1
Glyn asked on 02 Aug 2013, 03:08 PM
Hi All,

The Web UI Editor has foreColor and backColor Tools.
These buttons bring up colour selection palettes (currently defaulting to the WEBSAFE palette)

How can I specify that the editor's foreColor palette should be the BASIC colour palette?

Is there a jquery configuration line, or a method of $("#editor").kendoEditor({  I need to call to set the palette.
I've searched and seen a couple of other posts about this, but they are not relating to the Web UI.

Sorry, I'm a new guy, so I will probably have a few questions over the next few weeks.

With thanks.
Glyn



4 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 06 Aug 2013, 10:40 AM
Hello Glyn,

You can execute the following statement before initializing the Editor:

kendo.ui.editor.ColorTool.prototype.options.palette = "basic";

Note that it will influence both the backColor and the foreColor tool palettes. I am afraid you can't customize them separately.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Glyn
Top achievements
Rank 1
answered on 06 Aug 2013, 10:50 AM
Thank you Dimo, that works a treat.
0
Hans
Top achievements
Rank 1
answered on 21 Aug 2013, 02:59 PM
Hi,

Is there a way to setup the editor to use the HSV color selector just like we have with the kendo.ui.ColorPicker?

I tried the WebSafe palette but there are no gray tones in there which I need...

Thanks,
0
Dimo
Telerik team
answered on 21 Aug 2013, 04:12 PM
Hi Hans,

As suggested by the documentation, you can set the palette option to null.

http://docs.kendoui.com/api/web/colorpicker#configuration-palette

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Editor
Asked by
Glyn
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Glyn
Top achievements
Rank 1
Hans
Top achievements
Rank 1
Share this question
or