Encoding of localized texts

4 posts, 0 answers
  1. Caesar
    Caesar avatar
    59 posts
    Member since:
    Aug 2008

    Posted 13 Jun 2011 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    13752 posts

    Posted 15 Jun 2011 Link to this post

    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.

  3. Caesar
    Caesar avatar
    59 posts
    Member since:
    Aug 2008

    Posted 15 Jun 2011 Link to this post

    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
  4. Rumen
    Admin
    Rumen avatar
    13752 posts

    Posted 20 Jun 2011 Link to this post

    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.

Back to Top