Cute Editor .NET Bug

Last post 11-25-2005, 5:14 PM by Adam. 3 replies.
Sort Posts: Previous Next
  •  11-18-2005, 5:52 AM 12803

    Cute Editor .NET Bug

    Hi All,
     
    I'm hoping someone can help with the problem or has at least encountered it before.
     
    Scenario.
     
    We have a tabe which we have copied from another of our sites into the cuteeditor HTML view. When we save this the formatting is correct and everyone is happy. However when our users go to edit the HTML table via the WYSWIG the HTML table gets reformatted. Basically the HTML looks the same however the WYSWIG inserts spaces after the end of a TD. Example below

                              <tr> <td background="/portals/3/images/dots_verti.gif" colSpan="3" height="1"><img height="1" src="/Portals/3/images/clr.gif" width="1" border="0" /> </td></tr>

    Now, when i viewed this using a HEX editor i can see that the WYSWIG has inserted some "space" characters. In firefox this is not an issue as they are ignored but unfortunately IE does render them and the result is my row height is increased and looks untidy.

    Anyways to cut a ong story short, is there a way to prevent the cute editor from doing this?

    Hope someone can help as this is a real pain,

    Dave Hanson
     
     
  •  11-18-2005, 12:47 PM 12808 in reply to 12803

    Re: Cute Editor .NET Bug

    Dave,
     
    In HTML code, the presence or absence of a white space before an end tag should not affect the rendering of a document, according to SGML specifications. However, IE sometimes does not get this right.
     
    Based on I know CuteEditor doesn't add the white space when editing the content.  Can you paste the original HTML code and the code modified by the CuteEditor?

    I will investigate the code and find a solution. 

    In the next week, we will release a new build. Please response ASAP.  I hope we can find the answer before the new build.



     

    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

  •  11-21-2005, 5:28 AM 12835 in reply to 12808

    Re: Cute Editor .NET Bug

     
    Ok,
     
    Here is an example of the HTML that is correctly formatted when first placed into the cuteeditor. Then after you goto the WYSIWIG editor and save it reformats it with empty space.  Sorry I have not attached graphics. But if necessary i can. This should allow you replicate the problem tho.

                <table border="0" width="100%" cellpadding="2" cellspacing="0" ID="Table1">
                      <tr>
                            <td colspan="3" valign="top">&nbsp;
                            </td>
                      </tr>
                      <tr bgcolor="#f1f1f1">
                            <td width="46" align="center" bgcolor="#F8F3EA"><div align="left"><b>Art</b></div>
                            </td>
                            <td width="55" bgcolor="#F8F3EA"><div align="left"><b>Datum</b></div>
                            </td>
                            <td width="401" bgcolor="#F8F3EA"><b>Details</b></td>
                      </tr>
                      <tr>
                            <td align="center" valign="top"><a href="docs/FAbH0905.pdf" target="_blank"><img src="images/icon_pdf.gif" width="16" height="16" border="0" alt=""></a></td>
                            <td width="55" valign="top">09/2005
                            </td>
                            <td><b><a href="docs/FAbH0905.pdf" target="_blank">Kleine Sammlung - Großer Schutz</a> </b>
                            </td>
                      </tr>
                      <tr>
                            <td colspan="3" background="images/dots_verti.gif" height="1"><img src="images/clr.gif" height="1" border="0" alt=""></td>
                      </tr>
                      <tr>
                            <td align="center" valign="top"><a href="docs/trans0805.pdf" target="_blank"><img src="images/icon_pdf.gif" width="16" height="16" border="0" alt=""></a></td>
                            <td width="55" valign="top">08/2005
                            </td>
                            <td><b><a href="docs/trans0805.pdf" target="_blank">Gefahren beim Umzug</a> </b>
                            </td>
                      </tr>
                      <tr>
                            <td colspan="3" background="images/dots_verti.gif" height="1"><img src="images/clr.gif" height="1" border="0" alt=""></td>
                      </tr>
                      <tr>
                            <td align="center" valign="top"><a href=""
                                        target="_blank"><img src="images/icon_pdf.gif" width="16" height="16" border="0" alt=""></a></td>
                            <td width="55" valign="top">08/2005
                            </td>
                            <td><b><a href=""
                                              target="_blank">Hiscox erwirbt Fine Art Renewal Rechte von Ascon</a> </b>
                            </td>
                      </tr>
                </table>

     Let me know if you need anything else,

    PS. bit worried that the editor may have reformated this! lol 
  •  11-25-2005, 5:14 PM 13052 in reply to 12835

    Re: Cute Editor .NET Bug

    David,

    Indenting Code just makes the code easier to read and better laid out. It doesn't save the spaces into your database.
     
    Example:
     
     
    After you submit the form, the following html code is generated by the editor:
     
    <table cellSpacing="4" cellPadding="4" bgColor="#ffffff" border="0"> <tbody> <tr> <td> <p><img height="53" src="/Uploads/j0262681.jpg" width="80" /> </p> </td> <td> <p>When your algorithmic and programming skills have reached a level which you cannot improve any further, refining your team strategy will give you that extra edge you need to reach the top. We practiced programming contests with different team members and strategies for many years, and saw a lot of other teams do so too. </p> </td> </tr> <tr> <td> <p><img height="52" src="/Uploads/PH02366J.jpg" width="80" /> </p> </td> <td> <p>From this we developed a theory about how an optimal team should behave during a contest. However, a refined strategy is not a must: The World Champions of 1995, Freiburg University, were a rookie team, and the winners of the 1994 Northwestern European Contest, Warsaw University, met only two weeks before that contest. </p> </td> </tr> </tbody> </table> <br/> <br/>

    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