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

Editor - Custom Forecolors and Backcolors

5 Answers 239 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dustin
Top achievements
Rank 1
Dustin asked on 12 Nov 2012, 04:57 PM
How do you customize the fore and back colors and what is the defaults? I thought I saw this on your site once but I cannot no longer find this page.

5 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 12 Nov 2012, 07:05 PM
Hi Dustin,

There are foreColor and backColor tools in Kendo UI Editor which customize the colors. For a working example please check this online demo.

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Dustin
Top achievements
Rank 1
answered on 12 Nov 2012, 07:09 PM
Thank you for the quick response. I know that it can be costomized, but can you send me an example? I saw an example once that even listed the default colors. I didn't see an example on your demo site that specifically customizes the colors.
0
Iliana Dyankova
Telerik team
answered on 14 Nov 2012, 04:15 PM
Hi Dustin,

I am not quite sure if I understand you correctly. The online demo I pointed gives the opportunity to customize both foreColor and backColor as choosing from color palette (check the attached screenshot). Could you please elaborate a bit more, probably I am missing something?

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Dustin
Top achievements
Rank 1
answered on 14 Nov 2012, 04:21 PM
I don't know how else I can explain this. How do you customize the colors available to pick from in the color picker of the editor? And can you please send me a code snippet on how to do so?
0
Iliana Dyankova
Telerik team
answered on 19 Nov 2012, 01:41 PM
Hi Dustin,

You could customize the colors available to pick in Kendo UI Editor using the following code snippet: 

kendo.ui.editor.ColorPicker.fn.options.colors = ["c3c3c3","b97a57","ffaec9","ffc90e","efe4b0","b5e61d","99d9ea","7092be","c8bfe7"];       
$("textarea#editor").kendoEditor();

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