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

in IE, spaces are being replaced by %20

1 Answer 41 Views
Editor
This is a migrated thread and some comments may be shown as answers.
mkerchenski
Top achievements
Rank 1
mkerchenski asked on 29 Nov 2012, 10:04 PM
We have our own version of scripting language
We just recently install your updates(last week) and one of our clients reported this issue. I was able to reproduce it, on your demo page (http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx).

if you put this in in HTML mode
<a href="[cp:scripting key='column' name='address' /]" />[cp:scripting key='column' name='title' /]</a>

then switch to Design and then back to HTML. that what you going to get.
<a href="[cp:scripting%20key='column'%20name='address'%20/]">[cp:scripting key='column' name='title' /]</a>

This also happens with JavaScripts included in an HREF attribute.
<a href="javascript:alert('are spaces replaced');">Alert</a>

becomes
<a href="javascript:alert('are%20spaces%20replaced');">Alert</a>

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Dec 2012, 11:19 AM
Hello,

You can fix the problem by disabling the ConvertToXhtml filter of RadEditor.

Another approach is to replace the %20 with empty space using a custom content filter or on the server using String.Replace.

Kind regards,
Rumen
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
mkerchenski
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or