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

Rad Editor content change in respective browsers (IE, FF2)

1 Answer 100 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Namya Malinda
Top achievements
Rank 1
Namya Malinda asked on 06 Jan 2009, 11:00 AM
HI,

i am facing a issue in the RAD Editor which the same content changes when added in the html mode and moved to the design mode and coming back  to  the HTML Mode

below is the the orignal content 

<![if !supportMisalignedColumns]>
<tr height=0>
  <td width=4 style='border:none'></td>
  <td width=464 style='border:none'></td>
  <td width=122 style='border:none'></td>
</tr>
<![endif]>

after adding the original content in HTML mode in FF2 and then switch to design mode and coming back to the HTML mode will result in the below content  in the editor 

<br><!--[if !supportMisalignedColumns]-->

<!--[endif]-->

after adding the original content in HTML mode in IE7 and then switch to design mode and coming back to the HTML mode will result in the below content  in the editor 

<tr height="0">
<td style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none" width="4"></td>
<td style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none" width="464"></td>
<td style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none" width="122"></td></tr>

Is this expected behavour or due to any filter in the RAD Editor control

Thanks
Malinda






1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 09 Jan 2009, 02:30 PM
Hello Malinda,

I tried the code you sent and reproduced the problem in Firefox and IE. However, the code itself is not well formed, because it is just a table row without the <table> tag. When I surrounded it with table tags, the problem disappeared:

<table>
<![if !supportMisalignedColumns]>
<tr height=0>
  <td width=4 style='border:none'></td>
  <td width=464 style='border:none'></td>
  <td width=122 style='border:none'></td>
</tr>
<![endif]>

</table>

Note that the <![if !supportMisalignedColumns]> syntax is usually present when you paste content from MS Word or Excel. I think that it is specific for Internet Explorer 5 and has no real effect on modern browsers (especially Firefox). You can safely remove the <![if !supportMisalignedColumns]> and <![endif]> parts.


Regards,
Lini
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Namya Malinda
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or