Hi. First I’d like to state that I’ve been demoing several WYSIWYG interfaces over the past few months, and this cute editor has tested well above the rest. I had a few issues storing HTML into my SQL database, but solved the issue by encoding it. I have one problem that I can’t seem to find an answer to. When I submit HTML into a CE:Editor
Server.HtmlEncode(CuteEditor.Text), my iframe tag is stripped out. I can submit the same HTML in an asp:textbox
Server.HtmlEncode(myTextBox.Text) with no problems. I’ve noticed that CE:Editor adds a tbody tag to my code, but not sure if that is part of the problem. I’m hoping someone else has seen this before. My original HTML, & encoded text from CE:Editor and asp:TextBox are below. I've also posted it in a text file incase it does not properly come across:
http://209.204.80.148:8084/iframe.txt
Thank you for reading.
HTML Pasted into both CE:Editor and asp:TextBox
<
table cellpadding="0" cellspacing="0"><tr><td><table cellpadding="0" cellspacing="0" style="border-right: #cfcdc9 1px solid; border-top: #cfcdc9 1px solid; border-left: #cfcdc9 1px solid; border-bottom: #cfcdc9 1px solid"><tr><td id="lcolTop"><h2><span>Our Services</span></h2><ul><li>Sales and Marketing Programs</li><li>Targeted Internet Marketing</li><li>Lead Analysis & Database Management</li><li>Sponsorship Programs</li><li>Contract/Vendor Negotiations</li><li>Site Inspections</li><li>Design, Printing & Productions</li><li>Financial Management</li><li>Customer Service & Relations </li></ul><a id="ServicesReadMoreLink" href="default.aspx?id=20"></a></td></tr><tr><td id="lcolBottom"><h2><span>The Value of Trade Shows</span></h2><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc ultrices, ipsum condimentum pellentesque elementum, enim velit fermentum tellus, non adipiscing ligula nisl vitae metus. Sed sollicitudin hendrerit odio.<a id="TradeShowReadMoreLink" href="default.aspx?id=23"></a></p></td></tr></table></td><td style="width: 419px; height:257px"><table cellpadding="0" cellspacing="0" style="border-right: #cfcdc9 1px solid; border-top: #cfcdc9 1px solid; border-left: #cfcdc9 1px solid; border-bottom: #cfcdc9 1px solid"><tr><td id="rcolTop"><p>"Since our only service is exposition management, our focus allows us to maintain the highest standards in trade show production. We take our commitment to this industry seriously." </p><p class="quote_author" style="TEXT-ALIGN: right">-Ambrose Beirce,<br>U.S. Author, 1881-1906 </p></td></tr><tr><td><iframe scrolling="no" src="flash.aspx" style="width: 419px; height:257px"></iframe></td></tr></table></td></tr></table>
Server.HtmlEncode(CuteEditor.Text)
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<table style="border-right: #cfcdc9 1px solid; border-top: #cfcdc9 1px solid; border-left: #cfcdc9 1px solid; border-bottom: #cfcdc9 1px solid" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td id="lcolTop">
<h2>Our Services</h2>
<ul>
<li>Sales and Marketing Programs</li>
<li>Targeted Internet Marketing</li>
<li>Lead Analysis &amp; Database Management</li>
<li>Sponsorship Programs</li>
<li>Contract/Vendor Negotiations</li>
<li>Site Inspections</li>
<li>Design, Printing &amp; Productions</li>
<li>Financial Management</li>
<li>Customer Service &amp; Relations </li>
</ul>
<a id="ServicesReadMoreLink" href="default.aspx?id=20"></a></td>
</tr>
<tr>
<td id="lcolBottom">
<h2>The Value of Trade Shows</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc ultrices, ipsum condimentum pellentesque elementum, enim velit fermentum tellus, non adipiscing ligula nisl vitae metus. Sed sollicitudin hendrerit odio.<a id="TradeShowReadMoreLink" href="default.aspx?id=23"></a></p>
</td>
</tr>
</tbody>
</table>
</td>
<td style="width: 419px; height: 257px">
<table style="border-right: #cfcdc9 1px solid; border-top: #cfcdc9 1px solid; border-left: #cfcdc9 1px solid; border-bottom: #cfcdc9 1px solid" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td id="rcolTop">
<p>"Since our only service is exposition management, our focus allows us to maintain the highest standards in trade show production. We take our commitment to this industry seriously." </p>
<p class="quote_author" style="text-align: right">-Ambrose Beirce,<br />
U.S. Author, 1881-1906 </p>
</td>
</tr>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
Server.HtmlEncode(myTextBox.Text)
<table cellpadding="0" cellspacing="0"><tr><td><table cellpadding="0" cellspacing="0" style="border-right: #cfcdc9 1px solid; border-top: #cfcdc9 1px solid; border-left: #cfcdc9 1px solid; border-bottom: #cfcdc9 1px solid"><tr><td id="lcolTop"><h2><span>Our Services</span></h2><ul><li>Sales and Marketing Programs</li><li>Targeted Internet Marketing</li><li>Lead Analysis & Database Management</li><li>Sponsorship Programs</li><li>Contract/Vendor Negotiations</li><li>Site Inspections</li><li>Design, Printing & Productions</li><li>Financial Management</li><li>Customer Service & Relations </li></ul><a id="ServicesReadMoreLink" href="default.aspx?id=20"></a></td></tr><tr><td id="lcolBottom"><h2><span>The Value of Trade Shows</span></h2><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc ultrices, ipsum condimentum pellentesque elementum, enim velit fermentum tellus, non adipiscing ligula nisl vitae metus. Sed sollicitudin hendrerit odio.<a id="TradeShowReadMoreLink" href="default.aspx?id=23"></a></p></td></tr></table></td><td style="width: 419px; height:257px"><table cellpadding="0" cellspacing="0" style="border-right: #cfcdc9 1px solid; border-top: #cfcdc9 1px solid; border-left: #cfcdc9 1px solid; border-bottom: #cfcdc9 1px solid"><tr><td id="rcolTop"><p>"Since our only service is exposition management, our focus allows us to maintain the highest standards in trade show production. We take our commitment to this industry seriously." </p><p class="quote_author" style="TEXT-ALIGN: right">-Ambrose Beirce,<br>U.S. Author, 1881-1906 </p></td></tr><tr><td><iframe scrolling="no" src="flash.aspx" style="width: 419px; height:257px"></iframe></td></tr></table></td></tr></table>