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

RadEditor strips off my content

1 Answer 15 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Raj
Top achievements
Rank 1
Raj asked on 26 Oct 2012, 10:06 AM
Hi,

I have a website built on MVC3, and i recently built CMS using the ASPX structure.

I am using telerik aspx controlls to add and edit the contents to my front end from the admin section.

I have a RadEditor aspx control in the administation for the control , when i paste my content onto the RadEditor , it is changing the links, I don't want the links to be modified.

Eg: when i paste this in the html mode
<a href="@Url.Content(Abc.data.url+"Registration.aspx")">Click here</a>
but it stipsoff some content and only saves
<a href="@Url.Content(Abc.data.url+">Click here</a>

How can i achive this to take what ever i give in the Editor control for the links.

Please assist.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 31 Oct 2012, 07:59 AM
Hi,

Your link is not defined correctly because you firstly wrap the href value in double quotes and after that part of the value Registration.aspx again in double quotes, which is not allowed by the HTML specification

<a href="@Url.Content(Abc.data.url+"Registration.aspx")">Click here</a>


To fix the problem use this syntax:

<a href="@Url.Content(Abc.data.url+'Registration.aspx')">Click here</a>


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