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

Image Maps - target = problem

6 Answers 172 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Phuong Pham
Top achievements
Rank 1
Phuong Pham asked on 12 Aug 2009, 08:59 AM
Hi!
We currently use telerik RadEditor.
We having problem with target =" " problem in image maps.
When we use image maps and use target = blank it works fine and the html is set.
Problem is when we hit published the html code removes.

Before published:
<map id="rade_img_map_1250067357261" NAME="rade_img_map_1250067357261">
<area shape="rect" coords="101,70,164,114" href="http://www.test.no" shape="RECT" target="_blank" coords="101,70,164,114" /></map>
After published:
<map id="rade_img_map_1250067357261" name="rade_img_map_1250067357261">
<area shape="rect" coords="101,70,164,114" href="http://www.test.no" shape="RECT" coords="101,70,164,114" /></map>

as you see the html code: target="_blank" is missing.
The target works fine when we only use telerik RadEditor to create links etc.
The problem is only when we use image map.

6 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 13 Aug 2009, 02:47 PM
Hi Phuong,

I tried to reproduce the reported problem with the Save In External File live example of RadEditor but without success. Could you please, see the attached video demonstrating my test and let me know if I am missing something? Please test the live example as well as the Save in Database example and try to reproduce the reported problem. If you succeed please send us video and steps for how to reproduce the issue on our side.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Patrick Maeschli
Top achievements
Rank 1
answered on 11 Nov 2009, 08:19 AM
Hi Phuong
have you solved your Issue?
I have the same problems

regards
patrick
0
Bernard Laruelle
Top achievements
Rank 1
answered on 19 Mar 2010, 11:47 AM
Hi,

I use the telerik Rad Editor within MOSS Publishing sites...

I have defined some area in an image map and I have the same problem, the tags "target" disappear from my page !!!

Is there a solution ???

Best regards

Bernard
0
Patrick Maeschli
Top achievements
Rank 1
answered on 19 Mar 2010, 12:13 PM
Hi Bernard

This is a Sharepoint Issue which trims out this attribute.
There are IMHO two ways to solve this issue

- replace the target before save it into SharePoint, with something which will not be trimmed, and, if you display it, replace it again
- Use soemthing to set the target on rendering. This can be a httpmodule which inserts the target.

Is used jquery to set the target on every imagemap link to _new .

regards
patrick
0
Bernard Laruelle
Top achievements
Rank 1
answered on 19 Mar 2010, 01:43 PM
Hello Patrick,

Thanks for your quick answer,
Indeed I see the tag before saving the page, but it disappears when I save the page :-(
<area href="http://sapl.ams.solvay.com/cs/" shape="CIRCLE" alt="sapl" target="_blank" coords="79,187,42" />

I'm not sure that I understand your first solution ???

For the second solution, have you a sample code ?
If possible, I prefer to avoid to include jquery in my pages.

Regards,

Bernard
0
Patrick Maeschli
Top achievements
Rank 1
answered on 19 Mar 2010, 01:50 PM

Hi Bernard

The first solution woudl be, that you create a control, which wraps the editor, so you can replace the value of "target" whith f.ex "title" because title should not be replaced. So you can save the HTML in the Database. When you come Back, you need to rereplace again. All Area Tags Title attribute must be replaced with target

anyway.. to include JQUery
- include JQuery
- Add the following lines of Code at the Bottom of your Page/Masterpage

<script type="text/javascript">  
$("area").attr('target','_new');   
</script> 
 

regards
patrick
Tags
Editor
Asked by
Phuong Pham
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Patrick Maeschli
Top achievements
Rank 1
Bernard Laruelle
Top achievements
Rank 1
Share this question
or