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

how to specify custom palette in Editor with EditorColorPickerToolBuilder

1 Answer 15 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gerardo
Top achievements
Rank 1
Veteran
Iron
Gerardo asked on 17 Feb 2021, 07:50 PM

The Editor Factory includes a method to specify a custom color picker, but I can't find documentation how to instantiate the parameter:

 

https://docs.telerik.com/aspnet-mvc/api/Kendo.Mvc.UI.Fluent/EditorToolFactory#fontcolorsystemactionkendomvcuifluenteditorcolorpickertoolbuilder

Html.Kendo().EditorFor(x => x.Body).Tools(tools => tools.FontColor( ??? ))

I'll appreciate your help

thanks

1 Answer, 1 is accepted

Sort by
0
Gerardo
Top achievements
Rank 1
Veteran
Iron
answered on 17 Feb 2021, 09:44 PM

never mind, figure it out:

Html.Kendo().EditorFor(x => x.Body).Tools(tools => tools.FontColor( new string[] { "#c00003","#f20102"} ))

Tags
Editor
Asked by
Gerardo
Top achievements
Rank 1
Veteran
Iron
Answers by
Gerardo
Top achievements
Rank 1
Veteran
Iron
Share this question
or