public class CustomEditor : Editor
{
protected override void Render(HtmlTextWriter writer)
{
Toolbar topToolbar = this.TopToolbar;
Collection<AjaxControlToolkit.HTMLEditor.ToolbarButton.CommonButton> buttons = topToolbar.Buttons;
foreach (AjaxControlToolkit.HTMLEditor.ToolbarButton.CommonButton button in buttons)
{
switch (button.GetType().Name)
{
case "Undo":
button.ToolTip = "Отменить ввод";
break;
case "Redo":
button.ToolTip = "Повторить ввод";
break;
// many others buttons
case "FixedForeColor":
button.ToolTip = "Цвет текста";
break;
case "FixedBackColor":
button.ToolTip = "Цвет выделения текста";
break;
}
}
base.Render(writer);
}
}
Almoust everything works fine. The problem is with buttons "FixedForeColor" and "FixedBackColor". Their tooltips are not changed (and still in English). Is there any solution?