Hello;
I am using rad editor, my issue occurs when when I set Content property to fill rad editor with HTML on server side page load event, then invoke RadEditor.get_html(True) on client side event OnClientLoad; I noticed that Divs I set on server side is missing on client side.
It gives me different HTML Structure (Different than server side's Content property).
It used to work fine for me when i was using teleik version 2009.1.527.35 but after i upgraded to 2011.3.1305.35 version the issue appeared.
Please note that the issue appears when I set Browser Mode to IE9 Compatability View.
Below is the properties for RadEditor:
Below is the value for the server side Content property :
Below is value for client side get_html(true) property:
Please note that the div "dvEmailHistory" is missing when trying to read the value from client side.
Your help is highly appreciated.
I am using rad editor, my issue occurs when when I set Content property to fill rad editor with HTML on server side page load event, then invoke RadEditor.get_html(True) on client side event OnClientLoad; I noticed that Divs I set on server side is missing on client side.
It gives me different HTML Structure (Different than server side's Content property).
It used to work fine for me when i was using teleik version 2009.1.527.35 but after i upgraded to 2011.3.1305.35 version the issue appeared.
Please note that the issue appears when I set Browser Mode to IE9 Compatability View.
Below is the properties for RadEditor:
<rad:RadEditor ID="EmailBody" runat="server" Width="100%" ToolsFile="~/_CSS/EditorBasicTools.xml" OnClientLoad="EmailBody_OnClientLoad" StripFormattingOptions="NoneSupressCleanMessage" Skin="Default" SpellCheckSettings-DictionaryPath="~/App_Data/RadSpell/" SpellCheckSettings-DictionaryLanguage="en-US" EditModes="Design" ContentFilters="RemoveScripts, FixUlBoldItalic, FixEnclosingP, IECleanAnchors, MozEmStrong, IndentHTMLContent, EncodeScripts, OptimizeSpans"> <ContextMenus> <rad:EditorContextMenu Enabled="false" TagName="IMG"> </rad:EditorContextMenu> <rad:EditorContextMenu Enabled="false" TagName="A"> </rad:EditorContextMenu> </ContextMenus> </rad:RadEditor>Below is the value for the server side Content property :
<div id='dvEmailHistory'><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman"'>From:</span></b><span style='font-size:12.0pt;font-family:"Times New Roman"'> Ruba.Shannak@aramex.com <br /><b>Sent:</b> 4/24/2012 3:26:00 PM<br /><b>To:</b> DEV.TEST@aramex.com<br /><b>Cc:</b> <br /><b>Subject:</b> RE: Test<o:p></o:p></span></p></div><br/><html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--/* Font Definitions */@font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;}/* Style Definitions */p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";}a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;}span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;}.MsoChpDefault {mso-style-type:export-only; font-family:"Calibri","sans-serif";}@page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;}div.WordSection1 {page:WordSection1;}--></style><!--[if gte mso 9]><xml><o:shapedefaults v:ext="edit" spidmax="1026" /></xml><![endif]--><!--[if gte mso 9]><xml><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1" /></o:shapelayout></xml><![endif]--></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal">This is the email body..... <span style="font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#8AB131"><o:p></o:p></span></p><p class="MsoNormal"><o:p> </o:p></p></div></body></html></div>Below is value for client side get_html(true) property:
<HTML> <HEAD> <TITLE></TITLE> </HEAD> <BODY lang=EN-US vLink=purple link=blue> <DIV class=WordSection1> <P class="MsoNormal">This is the email body.....<SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: #8ab131; FONT-SIZE: 8pt"><o:p></o:p></SPAN></P> <P class="MsoNormal"><o:p> </o:p></P> </DIV> </BODY></HTML>Please note that the div "dvEmailHistory" is missing when trying to read the value from client side.
Your help is highly appreciated.