Localization of Kendo Editor Format options.

1 Answer 78 Views
Editor
Shane
Top achievements
Rank 2
Iron
Iron
Iron
Shane asked on 20 Jul 2022, 08:35 PM

I would like to be able to localize the format options. You can see here I have a custom font size component that is working fine. But a custom Format component is not working for me. I can use the default FormatBlock but dont know how to localize the labels.

I forked a font size sample here: https://stackblitz.com/edit/react-tsjbej?file=app%2FcustomFontSize.jsx,app%2Fmain.jsx

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 22 Jul 2022, 01:54 PM

Hi Shane,

You could use the EditorTools.createFormatBlockDropDownList function to create a new FormatBlock tool and pass the localized items to it.

See the following example: https://stackblitz.com/edit/react-lxssin?file=app%2Fmain.tsx.

I hope this helps.

Regards,
Nikolay
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Tags
Editor
Asked by
Shane
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Nikolay
Telerik team
Share this question
or