Hello,
the Color Tool Customization in the Telerik Editor is not working correctly. Colors are only generate HTML in Rgb.
The documentation says: "ValueFormat": The format, which the Color tool will set in the generated HTML markup. Use Rgb
or Hex
.
Thanks in advance.
For example: https://docs.telerik.com/blazor-ui/components/editor/built-in-tools#color-tool-customization
@using Telerik.Blazor.Components.Editor
<TelerikEditor Tools="@EditorTools"
@bind-Value="@EditorValue">
</TelerikEditor>
@code {
private string EditorValue { get; set; }
private List<IEditorTool> EditorTools { get; set; } = new List<IEditorTool>()
{
new ForeColor()
{
Title = "Text Color",
Colors = new List<string> { "#f00", "#ff9900", "rgb(0, 128, 0)", "rgba(0, 0, 255, .8)" },
ValueFormat = ColorFormat.Hex
},
new ViewHtml()
};
}