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

Anchor Tag Link Problem

5 Answers 232 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 2
Jeff asked on 23 Oct 2009, 03:33 PM
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!

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 28 Oct 2009, 03:11 PM
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.
0
Jeff
Top achievements
Rank 2
answered on 29 Oct 2009, 08:54 PM
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?
0
Rumen
Telerik team
answered on 04 Nov 2009, 08:23 AM
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.
0
Jeff
Top achievements
Rank 2
answered on 06 Nov 2009, 03:45 PM
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!
0
Rumen
Telerik team
answered on 11 Nov 2009, 04:57 PM
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.
Tags
Editor
Asked by
Jeff
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Jeff
Top achievements
Rank 2
Share this question
or