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

DropDownList formatting localization "Heading 1" ...

3 Answers 30 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Konstantin
Top achievements
Rank 1
Konstantin asked on 24 May 2019, 06:27 AM

How can I localize DropDownList formatting text "Heading 1" and other?

In demo it is not localized: https://demos.telerik.com/kendo-ui/editor/localization

messages.en-us.js don't contians this text.

3 Answers, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 27 May 2019, 12:51 PM
Hi Konstantin,

The Block formatting tool options names should be defined in the Tools configuration itself:
$("#editor").kendoEditor({
  tools: [{
    name: "formatting",
    items: [
      {text: "Custom P", value: "p"},
      {text: "Custom q", value: "blockquote"},
      {text: "Custom h1", value: "h1"}
    ]
  }]
});

That is because they do not feature dedicated localization strings. Here you will find a small sample implementing the above suggestion.

Regards,
Veselin Tsvetanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Thilok
Top achievements
Rank 1
answered on 25 Sep 2019, 02:32 PM
Is it possible to set the hover tool tip of this dropdown with a different value as well? (default is format) 
0
Martin
Telerik team
answered on 27 Sep 2019, 12:54 PM

Hello Thilok,

You can change the tooltip for the Format DropDown by changing its title attribute. You can use the current title as a selector:

var span = $("span[title='Format']");
$(span).removeAttr("title");
$(span).attr("title", "New Title");

Here you will find a Dojo example for reference.

Feel free to ask if you have questions regarding the approach.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Editor
Asked by
Konstantin
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Thilok
Top achievements
Rank 1
Martin
Telerik team
Share this question
or