Extra Line breaks

Last post 09-27-2007, 6:53 AM by constantNomad. 6 replies.
Sort Posts: Previous Next
  •  06-13-2006, 4:38 PM 20100

    Extra Line breaks

    When editing in HTML mode, CuteEditor will insert extra line breaks - even though those breaks do not matter but it just driving me crazy. It doesn't happen all the time but most of the times it does (especially after postback). After switching between Preview and HTML those extra breaks are gone and HTML code is reformated but nevertheless it seems to be a bug.
     
    Another strange behavior I have noticed is when I first time hit "Enter" in HTML mode, font size and style changes.
     
    All of those behavior do happen on provided examples.
     
     
     
     
     
  •  06-13-2006, 5:12 PM 20101 in reply to 20100

    Re: Extra Line breaks

    Slavik,
     
    Can you show me the steps to reproduce the problems in the following example?

    http://cutesoft.net/example/general.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

  •  06-13-2006, 5:34 PM 20102 in reply to 20101

    Re: Extra Line breaks

    1. Click HTML Edit (working fine) - the only problem when I click "enter" after <tbody> tag I see font size changes for entire source code.
    2. Click "submit"
    3. Click "Back" button on IE
    4. Now after clicking "enter" after <tbody> tag I can see extra empty line inserted.
     
     
    1. Click "HTML" tab
    2. Click Br readio button
     
    After that extra empty line is inserted after pressing "Enter"
     
     
  •  06-14-2006, 1:07 AM 20119 in reply to 20102

    Re: Extra Line breaks

    slavik,
     
    First please note that all the formats (spaces, new lines) in the Code View will not affect the final HTML code.
     
    >>1. Click HTML Edit (working fine) - the only problem when I click "enter" after <tbody> tag I see font size changes for entire source code.
     
    This behavior is caused by the particular style sheet used by example files.
     
    We will change that. Please test it again.
     
    >>3. Click "Back" button on IE
    >> Now after clicking "enter" after <tbody> tag I can see extra empty line inserted.
     
    When you back button to load CuteEditor, some Cute Editor initializing steps will be missted. But the major functions will work.
     
     
     
     
     
     

    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-14-2006, 10:19 AM 20132 in reply to 20119

    Re: Extra Line breaks

    Adam,
     
    I do realize that none of the spacing or extra lines inside HTML code will effect actual look of the page - nevertheless it is just not consistent how it behaves: sometimes it put one extra line break and sometimes it doesn't.
     
    The first bug was fixed inside the example - How do I fix it in my code? Download new version or is there a way to fix it without a new version?
     
    >>When you press "back" button to load CuteEditor, some Cute Editor initializing steps will be missed. But the major functions will work.
     
    How about second example I gave you where you don't have to press "Back" button to see this strange behavior:
    1. Swith to "HTML" mode
    2. Select "Br" radio button
    After the postback, extra breaks are now inserted inside HTML code (even when I switch back to "div" mode) there are still extra breaks when I press "Enter" - so if initial view is HTML edit - you get this behavior - if initial view is "normal" or "preview" - everything works fine.
     
    It seems to me that this happening every time there is a postback in HTML mode.
     
     
     
     
     
     
     
  •  06-30-2006, 11:50 AM 20630 in reply to 20132

    Re: Extra Line breaks

    Adam,
     
    One more time:
     
    The first bug was fixed inside the example - How do I fix it in my code?
    Do I wait for the new version of editor to see it fixed or is there a way to fix it without a new version?
     
    What about the second bug?
     
    Thank you.
  •  09-27-2007, 6:53 AM 33862 in reply to 20630

    Re: Extra Line breaks

    Hi there,

    I was having serious problems with line breaks when using the editor.  When I was getting the text from the editor and saving it, it would save the line characters and carriage return characters. "\r \n"

    Before saving the text, you need to remove these characters from the string. 

    Hope this helps!

    Paul.
View as RSS news feed in XML