adds in its own code?

Last post 09-15-2009, 1:03 PM by Adam. 3 replies.
Sort Posts: Previous Next
  •  09-14-2009, 6:55 PM 55627

    adds in its own code?

    I have a section of code I want users to be able to edit with CuteEditor, but when I submit it, the editor adds in its own code and messes us the page. What can be done about that????
     
    <td width="380" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="380" height="310" valign="top">
    <a href="request.htm"><img src="images/parts_front.jpg" width="380" height="310" border="0" /></a></td>
    </tr>
    </table></td>
              <td width="25">&nbsp;</td>
    <td width="410" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="404" height="26" valign="top"><span class="style8">Contact Us </span></td>
    <td width="6"></td>
    </tr>
    <tr>
    <td height="34">&nbsp;</td>
                    <td></td>
    </tr>
    <tr>
    <td height="250" colspan="2" valign="top">
    <p class="style9"><strong>
    Have questions about our company or services? Just Ask! </p>
    <p class="style9">
    info@qualityminitruckparts.com<br />
                        <br />
    <br />
    </p></td>
    </tr>
    </table></td>


    Its takes the above, I save it and it then is this code.

    <table width="100%" border="0" cellpadding="0" cellspacing="0">
         <tbody>
             <tr>
                 <td valign="top" width="380" height="310">
                 <a href="request.htm"><img src="images/parts_front.jpg" alt="" width="380" border="0" height="310"></a></td>
             </tr>
         </tbody>
    </table>
    &nbsp;
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
         <tbody>
             <tr>
                 <td valign="top" width="404" height="26"><span class="style8">Contact Us </span></td>
                 <td width="6"><br />
                 </td>
             </tr>
             <tr>
                 <td height="34">&nbsp;</td>
                 <td><br />
                 </td>
             </tr>
             <tr>
                 <td colspan="2" valign="top" height="250">
                 <p class="style9"><strong>
                 Have questions about our company or services? Just Ask! </strong></p>
                 <strong> </strong>
                 <p class="style9">
                 <strong> info@qualityminitruckparts.com<br />
                 <br />
                 <br />
                 </strong></p>
                 </td>
             </tr>
         </tbody>
    </table>


  •  09-15-2009, 5:42 AM 55643 in reply to 55627

    Re: adds in its own code?

    Can you try your code in this example?
     
     
    Please note that you need to have the <table>, <tr> tags outside the <td> tags.
     
    Keep me posted

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  09-15-2009, 7:37 AM 55647 in reply to 55643

    Re: adds in its own code?

    It adds the extra code in there also.

    I am guessing it would be because im doing only a <td> to start it?
     
    my website has the <table> and <tr> then we call the mySQL stored value which is what this editor is writing its output to.
    so we need to expand it to the full table not just the table data?? 
  •  09-15-2009, 1:03 PM 55658 in reply to 55647

    Re: adds in its own code?

    TopHatDan,
     
    It's the browser based solution.
     
    When you input <td></td> without <table> and <tr>, most browsers will think you input the wrong code and fix it automatically for you.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML