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

Encoding of localized texts

3 Answers 36 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Caesar
Top achievements
Rank 1
Caesar asked on 13 Jun 2011, 12:27 PM
Hi,

I'm having problem with some texts when localizing.
For example when setting the following:
RadEditor.Localization.Tools.Zoom = "<aaa>"

The zoom dropdown disappears (or becomes very small). Seems to be some problem when encoding the text.
If setting the text as html-encoded ("&lt;aaa&gt;"), then the tooltip gets wrong (displays &lt;aaa&gt;).

Regards
Caesar

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 15 Jun 2011, 02:50 PM
Hi Caesar,

Try the following:
RadEditor1.Localization.Tools.Zoom = "&ltaaa>"


Greetings,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Caesar
Top achievements
Rank 1
answered on 15 Jun 2011, 04:38 PM
Hi,

You mean setting:
RadEditor1.Localization.Tools.Zoom = "&lt;aaa&gt;"

This will display correctly in the toolbar ("<aaa>"), but the tooltip of the zoom-button will display "&lt;aaa&gt;".

I can't get both the text and tooltip correct?

Regards
Caesar
0
Rumen
Telerik team
answered on 20 Jun 2011, 10:58 AM
Hi Caesar,

You can apply the zoom tool header value and title using the JavaScript below:

<script type="text/javascript">
    function OnClientLoad(editor, args) {
        setTimeout(function () {
            var zoomTool = editor.getToolByName("Zoom");
            zoomTool.set_value("&lt;aaa>");
            zoomTool.get_element().title = "<aaa>";
 
        }, 0);
    }
         
</script>
<telerik:RadEditor ID="RadEditor1" runat="server" OnClientLoad="OnClientLoad">


Regards,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Editor
Asked by
Caesar
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Caesar
Top achievements
Rank 1
Share this question
or