asp.net mvc - Custom font color tool in Kendo Editor -
i want know if it´s possible remove colors in font color tool of kendo editor ... have this.
@(html.kendo().editor() .name("editor") .tools(tools => tools.clear().fontcolor()) .htmlattributes(new { @class = "some_class" }) .events(e => e.change("someevent")) )
i need allow red , green colors.
thanks in advance.
try code,
below code execute in page load event. in if condition have display color displayed
$(".k-palette,.k-reset").find('ul.k-palette').find('li').each(function () { if ($(this).attr('aria-label') === "#ffccff") { $(this).css('display','block'); } else { $(this).css('display', 'none'); } });
Comments
Post a Comment