RadEditor strips off my content

2 posts, 0 answers
  1. Raj
    Raj avatar
    10 posts
    Member since:
    Sep 2010

    Posted 26 Oct 2012 Link to this post


    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.

  2. Rumen
    Rumen avatar
    14459 posts

    Posted 31 Oct 2012 Link to this post


    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,
    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.
Back to Top