Rich Text Editor - Dropdown - possibility to change "Select font size" text

1 Answer 493 Views
Editor
Rita
Top achievements
Rank 2
Iron
Iron
Rita asked on 22 Mar 2022, 12:19 PM
Hello, I'm wondering if there is a possibility to change the "Select font size" text to, for example, "Font size". Looks like the DropDownList has this ability but it seems that's not applicable for dropdowns in Rich Text Editor: https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/default-item/. Can you please advise me on this matter?

Thanks,
Rita

1 Answer, 1 is accepted

Sort by
0
Accepted
Preslava
Telerik team
answered on 25 Mar 2022, 07:17 AM

Hi Rita,

The easiest way to achieve this is by setting a custom message for the tool in question. This is done by inserting the CustomMessagesComponent inside the <kendo-editor></kendo-editor> tag and setting the respective message, like this:

<kendo-editor [value]="value">
            <kendo-toolbar>
                <kendo-toolbar-dropdownlist
                kendoEditorFontSize
                ></kendo-toolbar-dropdownlist>
            </kendo-toolbar>
            <kendo-editor-messages
                fontSize="Font size">
            </kendo-editor-messages>
</kendo-editor>

Here is an example demonstrating this approach:

https://stackblitz.com/edit/angular-uhnuzd?file=app/app.component.ts

More information can be found here:

https://www.telerik.com/kendo-angular-ui/components/editor/globalization/#toc-custom-messages

https://github.com/telerik/kendo-angular-messages/blob/develop/messages/editor/editor.en-US.yml

Let me know how this goes.

Regards,
Preslava
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Rita
Top achievements
Rank 2
Iron
Iron
commented on 25 Mar 2022, 09:00 AM

Thank you very much, it works for me!
Tags
Editor
Asked by
Rita
Top achievements
Rank 2
Iron
Iron
Answers by
Preslava
Telerik team
Share this question
or