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

Adding & (\u0026) to special characters

1 Answer 62 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Casey
Top achievements
Rank 1
Casey asked on 29 Mar 2012, 04:27 PM
I have a radeditior on my page with a custom list of characters. I am having problems adding the & symbol to the symbols list. The space in the list where the & should show up appears blank. Please see the attached screenshot. The blank space (which appears gray because it is selected) after the percent sign should be where the & symbol appears. I have tried adding it by
editor.Symbols.Add("&")
 And by
editor.Symbols.Add("\u0026")

And receive the same results. Does anyone have any idea why this would happen?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 02 Apr 2012, 02:47 PM
Hi Casey,

After examine the case, I was able to reproduce the described behavior only under InternetExplorer version prior 9. Could you please verify that is the case for you?

It seems that the ampersand symbol is not properly converted into HtmlEntity under IE and that is why it is not rendered inside the dropdown. I have logged this issue into our database and we will do our best to have it fixed as soon as possible. For the time being you can use the following workaround:
<telerik:RadEditor ID="RadEditor1" runat="server" OnClientLoad="editorLoad">
</telerik:RadEditor>
 
<script type="text/javascript">
    function editorLoad(editor)
    {
        var symbols = editor.get_symbols();
        for (var i = 0; i < symbols.length; i++) {
            if (symbols[i] == "&")
                symbols[i] == "&";
        }
    }
</script>

I hope this helps.

Greetings,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Casey
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or