CuteEditor modifies pasted html code ?!

Last post 03-31-2005, 12:15 AM by Adam. 19 replies.
Sort Posts: Previous Next
  •  01-10-2005, 5:38 AM 3351

    CuteEditor modifies pasted html code ?!

    Hi,
     
    I have a problem using Cute Editor when I paste my HTML code, and then save it the html code is sometimes modified that's not really a problem unless the modified html does not render as the original html.
     
    When I save the html some "width" values ar set to 1 and in the pasted html theses values where greater than 1. I do not understand why cute editor modifies those values. 

    I don't event switch to design mode, I just paste the html and click on a save button which get the content with the Text property.

    Here attached the original html pasted in cute editor and the html returned by the Text propertdy of the CuteEditor
    Any help will be appreciated.
     
    Sébastien
  •  01-10-2005, 10:51 PM 3371 in reply to 3351

    Re: CuteEditor modifies pasted html code ?!

    Sébastien,
     
    I have tested the file your attached.
     
    I don't have any problem at the CuteSoft web Site.

    http://cutesoft.net/example/general.aspx
     
    Can you download the new version 4.0.0.3 and do a new test?
     
    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

  •  01-13-2005, 5:25 AM 3465 in reply to 3351

    Re: CuteEditor modifies pasted html code ?!

    Hi Adam,

    Thank you for your answer.

    I have copy/pasted the html code of the original file attached in my first post in the cuted editor at http://www.cutesoft.net/example/general.aspx
    and I have the same problem. When I submit the html code it displays two horizontal gray lines that do not appear like that in the original html. So I guess Cute Editor modifies the HTML code somewhere when submitted.
     
    Do you have any idea why this is happening ?
     
    Kind regards.
     
    Sébastien.
  •  01-13-2005, 1:17 PM 3491 in reply to 3465

    Re: CuteEditor modifies pasted html code ?!

    Sébastien,

    After you submit the forum, we add an extra line to separate the code:



     

    The HTML you typed is...


    <table cellspacing="4" cellpadding="4" bgcolor="#ffffff" border="0"> <tbody> <tr> <td> <p>&#160;</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 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 </p> <p> <img src="/Uploads/j0262681.jpg" width="80" /> </p> <p>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

  •  01-14-2005, 6:06 AM 3499 in reply to 3491

    Re: CuteEditor modifies pasted html code ?!

    Hi Adam,

    My explanation was not clear I'm sorry. Have a look at the three attached files, you will understand what I'm talking about.

    The first  attachment shows the original file. 

    The second attachment shows the html code pasted in CuteEditor and viewed on the Preview tab.

    The third attachment shows the Result of the html submitted to cute editor in this attachment you can clearly see 2 wide gray lines which do not appears on the other attachments.
     
    I hope my problem is more clear to you now.  I appreciate your help.
     
    Kind regards.
     
    Sébastien.

  •  01-14-2005, 12:24 PM 3504 in reply to 3499

    Re: CuteEditor modifies pasted html code ?!

    I have the same problem.  When I paste HTML formatted text and have the editor text saved to a database, it returns with differently formatted html.  This is especially problematic with links <a href> tags without terminating </a> tags, tables, etc.  Is there something we need to change in how we set the editor text value or a different property we can set so instead of saying cuteeditor.text = database.result we set it to say cuteeditor.htmltext = database.result?  I want the user to be able to keep the formatting no matter where it was pasted from (Outlook, Word, Internet)--thanks!
  •  01-14-2005, 1:27 PM 3506 in reply to 3499

    Re: CuteEditor modifies pasted html code ?!

    Sébastien,
     
    Please open your Original.txt file.
     
    In the bottom of you file, you can find the following code:
     
     </table>
        </td>
       </tr>
       </TD></TR>
      </table>
     
    Can you fix that before input the editor?
    Because this error, CuteEditor is trying automatically parse your html code and fix it. so the result may different.
     

    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

  •  03-07-2005, 8:26 AM 4424 in reply to 3506

    Re: CuteEditor modifies pasted html code ?!

    Dear Adam,
     
    I'm still having the exact same problem. When my HTML code includes some tables boxed into other tables I have white spaces that shouldn't appear when the code is rendered. I have checked my tags and all tags are well closed in relation with an open tag.
     
    I do not understand why CuteEditor modifies my HTML code when I save it.

    I have tried my HTML code to the demo Page of your web site and I have the same problem.

    It seems that Cute Editor adds some spaces after </tr> tags and thoses spaces are interpreted.
     
    Can you please help me on this issue ?

    Kind regards,

    Sébastien
     
  •  03-07-2005, 9:06 AM 4425 in reply to 4424

    Re: CuteEditor modifies pasted html code ?!

    Sébastien,
     
    Your HTML code is invalid and has some error.

    In the bottom of you file, you can find the following code:

    Invalid HTML Code
            </td>
           </tr>
        </TD></TR>
      </table>

     
     
    Cute Editor is trying to fix this problem automatically but no success.
     
     

    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

  •  03-07-2005, 10:01 AM 4427 in reply to 4425

    Re: CuteEditor modifies pasted html code ?!

    I'm not talking about this html code any more. I have a totally different html code but I'm having the exact same problem.
  •  03-07-2005, 10:02 AM 4428 in reply to 4427

    Re: CuteEditor modifies pasted html code ?!

  •  03-07-2005, 10:05 AM 4429 in reply to 4427

    Re: CuteEditor modifies pasted html code ?!

    Here is the Html Codefor which I have a problem:
     
    Original : undefined
     
    CuteEditor Saved: undefined
  •  03-07-2005, 10:06 AM 4430 in reply to 4428

    Re: CuteEditor modifies pasted html code ?!

    Code pasted
  •  03-07-2005, 10:06 AM 4431 in reply to 4428

    Re: CuteEditor modifies pasted html code ?!

     Adam wrote:
    Can you paste your new HTML code?
     
  •  03-07-2005, 10:17 AM 4432 in reply to 4431

    Re: CuteEditor modifies pasted html code ?!

    OK, I'm sorry, it seems that my original HTML code is not giving the expected result.
     
    I'm going to correct that.
     
     
  •  03-07-2005, 11:21 AM 4435 in reply to 4432

    Re: CuteEditor modifies pasted html code ?!

    OK I'm having the problem again.
     
    I pasted html code (undefined) in cute editor pressed saved. The html is renderning correctly. I click the edit button to have html code in CuteEditor I don't change anything in the html code I click save the html is not rendering correctly anymore.
     
    I have white space at the end of </table> tags. Do you have any idea why is this happening?
  •  03-07-2005, 11:31 AM 4436 in reply to 4435

    Re: CuteEditor modifies pasted html code ?!

    The weird thing is that if I edit the page in design mode in cute editor and save the changes the HTML is still rendered correctly, but if I do the same change using the HTML view in Cute Editor and then save the changes the HTML rendered isn't correct anymore.

  •  03-07-2005, 1:29 PM 4441 in reply to 4436

    Re: CuteEditor modifies pasted html code ?!

    sebnunes,

    What's the problem?

    Do you mean the problem is: the code in <head> section are being stripped out?
     
     
     

    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

  •  03-11-2005, 5:05 AM 4534 in reply to 4441

    Re: CuteEditor modifies pasted html code ?!

    Dear Adam,
     
    I never said anything about the <head> section!
     
    I'm saying that when I edit my page with CuteEditor in design mode everything works fine. When I edit the same page in html mode then my page looks different. For a undefined reason I have white spaces after </td> tags and thoses white spaces are actually interpreted by the Browser. So it seems that CuteEditor adds some code when the page is edited in html mode. Is my problem clear to you now?
     
    Kind regards,
     
    Sébastien.
  •  03-31-2005, 12:15 AM 5162 in reply to 4534

    Re: CuteEditor modifies pasted html code ?!

    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

View as RSS news feed in XML