HTML is changed after it is pasted in cute soft editor

Last post 06-09-2005, 7:45 PM by Adam. 12 replies.
Sort Posts: Previous Next
  •  03-29-2005, 7:30 PM 5078

    HTML is changed after it is pasted in cute soft editor

    when i use following code to paste the html , when the drop down is selected -

    foreach
    (FileSystemInfo info in fsi)
    {sFilePath = sFileLoc + info.Name;
    string sText = this.GetFileText(sFilePath);
    dropdown.Items.Add(info.Name,sText.ToString());}

    dropdown.Attributes["onchange"]="[CuteEditor_DropDownCommand(this,'PasteHTML')]";

    I want the original HTML to be pasted in the cute soft editor
    But the following HTML is pasted ,
    check th original HTML after this -

    <table cellSpacing="0" cellPadding="0" border="0"><header></header>
       <tbody></tbody>
    </table>
    <table cellSpacing="0" cellPadding="0" border="0"><>&#160;&#160;&#160;&#160;&#160;&#160;</>
       <tbody>
           <tr><>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</>
               <td align="right" width="900" background="[HeaderImg]"></td><>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </>
           </tr><>&#160;&#160;&#160;&#160;&#160;&#160;</>
       </tbody>
    </table>
    <table cellSpacing="0" cellPadding="0" border="0"><>&#160;&#160;&#160;&#160;&#160;&#160;</>
       <tbody>
           <tr><>&#160;&#160;&#160;&#160;&#160;&#160;<!--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<td><PresentationInfo></PresentationInfo></td> --> </>
               <td>
                  <table cellSpacing="0" cellPadding="0" border="0"><>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</>
                      <tbody>
                          <tr><>&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;</>
                                <td vAlign="top" width="180" background="http://www.NMM.com/ThemeComponents/TempImages/presenter area.jpg" height="180">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</td><>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</>
                          </tr>
                          <tr><>&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;</>
                                <td vAlign="top" width="180" background="http://www.NMM.com/ThemeComponents/TempImages/presentation details.jpg" height="180">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</td><>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</>
                          </tr>
                          <tr><>&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;</>
                                <td vAlign="top" width="180" background="http://www.nmm.com/ThemeComponents/TempImages/branding.jpg" height="180">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</td><>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;</>
                          </tr>
                      </tbody>
                  </table>
               </td>
               <td><presentationinfo></presentationinfo>
               </td><>&#160;&#160;&#160;&#160;&#160;&#160; <footer></footer>&#160;&#160;&#160;&#160;&#160;&#160; </>
           </tr>
       </tbody>
    </table>
    <table cellSpacing="0" cellPadding="0" width="900" border="0"><>&#160;&#160;&#160;&#160;&#160;&#160;</>
       <tbody>
           <tr>
               <td align="right">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
                  <table height="40" cellSpacing="0" cellPadding="0" width="900" border="0"><>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</>
                      <tbody>
                          <tr>
                                <td align="left" width="900" background="http://www.nmm.com/ThemeComponents/TempImages/blank footer.jpg" height="40">&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</td>
                                <td id="prevDiv" align="right">[Previous]</td><>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</>
                                <td></td><>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</>
                                <td id="nextDiv">[Next]</td><>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</>
                          </tr>
                      </tbody>
                  </table>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
               </td>
           </tr>
       </tbody>
    </table>&#160;&#160;&#160;&#160;&#160;&#160;
     
     
    Original HTML -
     
    <table border='0' cellpadding='0' cellspacing='0'>
    <Header><Table border='0'cellpadding='0' cellspacing='0'>
     <tr>
      <td align='right' background='[HeaderImg]' width='900' height='[HeaderHeight]'></td>
      
    </tr>
     </table>
    </Header>
    <Table border='0' cellpadding='0' cellspacing='0'>
     <tr>
     <!-- <td><PresentationInfo></PresentationInfo></td> -->
    <TD><Table border='0' cellpadding='0' cellspacing='0'>
      <TR>
        <td align='top' background="http://www.nmm.com/ThemeComponents/TempImages/presenter area.jpg" width="180" height='180' valign="top"
      </td>
      </TR>
      <TR>
        <td align='top' background="http://www.nmm.com/ThemeComponents/TempImages/presentation details.jpg" width="180" height='180' valign="top"
      </td>
      </TR>
      <TR>
        <td align='top' background="http://www.nmm.com/ThemeComponents/TempImages/branding.jpg" width="180" height='180' valign="top"
      </td>
      </TR>
     </TD> 
     </Table>
           <td><PresentationInfo></PresentationInfo></td> 
    <Footer>
     
    </Table>
    <Table border='0' cellpadding='0' cellspacing='0' width='900'>
     <td align='right'>
        
         <Table border='0' cellpadding='0' cellspacing='0'width='900' height='40'>
              <td background="http://www.nmm.com/ThemeComponents/TempImages/blank footer.jpg" width='900' height='40' align='left'[InteractionsIcons]</td> 
             <td align='right' id='prevDiv'>[Previous]</td>
         <TD></TD>
         <td id='nextDiv'>[Next]</td>
        
        </table>
       </td>
    </table>
     
    </Footer>
    </table>

    Thanks.........
  •  03-30-2005, 4:03 PM 5128 in reply to 5078

    Re: HTML is changed after it is pasted in cute soft editor

    Yah, CuteEditor likes to convert tabs to &#160; (non breaking spaces). The simple fix is to replace tabs with spaces BEFORE sending the html to CuteEditor.
  •  03-31-2005, 12:01 AM 5156 in reply to 5128

    Re: HTML is changed after it is pasted in cute soft editor

    Please download latest version 4.0.0.6.
     
     
    The new Editor.DisableAutoFormatting Property has been introduced.  By default Cute Editor will carefully analyze all of your HTML code and begin correcting all errors automatically. What you get is professionally presented code, properly reformatted and ready for use. If you want to preserve the formatting of existing HTML, you can turn this feature off by setting Editor.DisableAutoFormatting property to "true".

    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

  •  04-04-2005, 3:40 PM 5292 in reply to 5156

    Re: HTML is changed after it is pasted in cute soft editor

    i tried this new property DisableAutoFormatting (setting it to true)

    now if i enter the html (in IE):
    <table><tr><td>hello</td></tr></table>
    <div>
    goodbye
    </div>

    it becomes:
    <TABLE>
    <TBODY>
    <TR>
    <TD>hello</TD></TR></TBODY></TABLE>
    <DIV>goodbye </DIV>

    is that the intended behavior?


  •  04-04-2005, 4:36 PM 5296 in reply to 5292

    Re: HTML is changed after it is pasted in cute soft editor

  •  04-04-2005, 5:20 PM 5299 in reply to 5296

    Re: HTML is changed after it is pasted in cute soft editor

    hmmm...is it possible to retain the original formatting?  or is that a future fix?
  •  04-11-2005, 7:48 PM 5599 in reply to 5299

    Re: HTML is changed after it is pasted in cute soft editor

     RodneyLai wrote:
    hmmm...is it possible to retain the original formatting?  or is that a future fix?

    I second that request.

  •  04-13-2005, 12:57 PM 5688 in reply to 5599

    Re: HTML is changed after it is pasted in cute soft editor

    Third :)
  •  04-14-2005, 11:12 AM 5724 in reply to 5688

    Re: HTML is changed after it is pasted in cute soft editor

  •  04-18-2005, 12:36 PM 5828 in reply to 5724

    Re: HTML is changed after it is pasted in cute soft editor

    not for me with DisableAutoFormatting="True":

    <table><tr><td>hello</td></tr></table>
    <div>
    goodbye
    </div>

    still becomes:
    <TABLE>
    <TBODY>
    <TR>
    <TD>hello</TD></TR></TBODY></TABLE>
    <DIV>goodbye </DIV>


  •  05-26-2005, 9:36 AM 7022 in reply to 5828

    Re: HTML is changed after it is pasted in cute soft editor

    I can confirm also that TBody still are introduced in 4.0.0.7 with DisableAutoFormatting="True"
     
    I understand that it's better to have tbody and it's probably a good pratice, but the reality is that we can't cut and paste existing htmlbecause those extra tag scew up the final display look (especially when using complex css).


    I really like server side api, but little thing like that make life harder...
    --
    A cute editor user since version 1.5
     
  •  05-26-2005, 10:32 AM 7036 in reply to 7022

    Re: HTML is changed after it is pasted in cute soft editor

    We will resolve this issue in the next minor release.
     
    Sorry for the inconvenience and thanks for continuing support the Cute Editor.
     
     

    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

  •  06-09-2005, 7:45 PM 7431 in reply to 7036

    Re: HTML is changed after it is pasted in cute soft editor

    This issue has been resolved in the version 4.5.

    Editor.RemoveTBODYTag Property

    By default Internet Explorer HTML parser automatically insert TBODY tag after any TABLE tag. When this property is set to true, CuteEditor strips out the TBODY tags.

    Demo:
     
    http://cutesoft.net/example/general.aspx
     
    Download:
     
    http://cutesoft.net/Downloads/default.aspx
     
     

    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