This method should change the text and the tooltip of a desired tool.
Currently this functionality does not work and the set value is not applied to the UI of the button.
Possible workaround is using the following custom Client-side method, that changes both the button's text and its tooltip:
function changeToolsText(editor, toolName, newToolText) {
var tool = editor.getToolByName(toolName);
var toolElement = tool.get_element();
var textElement = $telerik.getChildByClassName(toolElement, "reButton_text", 0);
//Set the tooltip of the Anchor element
toolElement.title = newToolText;
//Set the text of the button
textElement.innerHTML = newToolText;
}
This method accepts three overload arguments:
1. editor - the editor's Client-side object;
2. toolName - the name of the tool as string;
3. newToolText - the desired text as string;
Example:
function OnClientLoad(editor, args) {
changeToolsText(editor, "CustomTool", "New text value");
}