Anchor Tag Link Problem

6 posts, 0 answers
  1. Jeff
    Jeff avatar
    22 posts
    Member since:
    Jun 2006

    Posted 23 Oct 2009 Link to this post

    I am unable to create a proper anchor tag link with the Hyperlink Manager. If I create a link called #top, and choose it under the list of existing achor tags, the url that shows up in the rendered html is the full url for the currect page (that contains the editor, with a bunch of strange query strings (and the #top tacked on at the end).

    Example of rendered html when I tried to link to an anchor called #top:

    <P><A name=top>test</A><BR><BR><A href="http://demo1.a2test.com/AnnouncementsAjaxed/NewAnnouncement.aspx?id=77819&amp;rwndrnd=0.24901411996245631#top">test</A></P>

    I need it to simply render

    <P><A name=top>test</A><BR><BR><A href="#top">test</A></P>

    Is this possible? Help!
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 28 Oct 2009 Link to this post

    Hi Jeff,

    This problem should be fixed in the latest version of RadEditor.
    Could you please make sure that you are using the latest build of RadControls for ASP.NET AJAX Q3 2009 (version 2009.2.826)? You should also make sure that the default RadEditor content filters are not disabled and especially the ConvertToXhtml filter.

    Sincerely yours,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jeff
    Jeff avatar
    22 posts
    Member since:
    Jun 2006

    Posted 29 Oct 2009 Link to this post

    I need to have the ContentFilters of the radEditor set to MakeUrlsAbsolute so that the urls can be valid from outside the site, but at the same time, I need links to anchor tags to merely look like href="#anchor". Is this possible?
  5. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 04 Nov 2009 Link to this post

    Hi Jeff,

    This is exactly how the MakeUrlsAbsolute content filter of RadEditor works. You can insert images and links with absolute urls but the anchors are set with relative paths, e.g.

    <a href="#anchor">Anchor</a>

    For your convenience I have attached a video demonstrating my test with the Built-in Content Filters live example of RadEditor.

    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Jeff
    Jeff avatar
    22 posts
    Member since:
    Jun 2006

    Posted 06 Nov 2009 Link to this post

    This is not the way it is working for me. When I use this code:

    RadEditor1.ContentFilters = Telerik.Web.UI.EditorFilters.MakeUrlsAbsolute

    the achor tags are still showing as http://...

    Is it possible to send me a sample solution with an editor behaving correctly so I can look at the code (I can't see any code in the video), or do I need to start a ticket?

    Thanks!
  7. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 11 Nov 2009 Link to this post

    Hi Jeff,

    Please, find attached the requested project and video demonstrating my test with it.

    Kind regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017