Extra blank lines making our customers very mad - Cute Editor community please help!!!

Last post 09-06-2006, 7:33 PM by obiwantcp. 6 replies.
Sort Posts: Previous Next
  •  09-06-2006, 12:17 PM 22411

    Extra blank lines making our customers very mad - Cute Editor community please help!!!

    Bug: When our customers copy Word docs (their primary way of writing text) and paste it into Cute Editor, something wrong happens--we get extra spaces in the end HTML generated by Cute Editor.
     
    Detail: Cute Editor shows all the lines fine, but when you send out the HTML as stored by Cute Editor to emails. You will see three blank lines (in the web browser or email reader) for every single blank line (in the original Word doc).
     
    Does this ring a bell? Does anyone know a fix for this? Our customers are really really pissed at all the ugly webpages created and we are looking for a proper solution. Any help from the Cute Editor team in this matter would be greatly appreciated.
     
    I am looking for programmatic patches I can do right away from the Cute Editor community!!!
     
    Please help!
     
    -- David
     
     
     Here's a screen shot of the problem:
     
    Here's the screenshot
  •  09-06-2006, 1:12 PM 22423 in reply to 22411

    Re: Extra blank lines making our customers very mad - Cute Editor community please help!!!

    David,
     
    Can you try the following demo?
     
     
    Let me know the steps if you can reproduce the issue.
     
     

    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-06-2006, 2:19 PM 22437 in reply to 22423

    Re: Extra blank lines making our customers very mad - Cute Editor community please help!!!

    Yes. This is reproducible using the test page.
     
    Here are the steps:
     
    1. Go into word, and type the following:
     
    -------------- start of original spacing -----------------
    This is a test here is a return return.
     
    Here’s another return.
    Here’s another return.
    -------------- end of original spacing -----------------
     
    2. Paste it (Paste as Word) into Cute Editor using demo page.
     
    3. Go to view source of Cute Editor. Grab the source (it looks like the following):
     
     
    ---------------- start of source --------------
     
    <p>This is a test here is a return return.</p>
    <p>&nbsp;</p>
    <p>Here’s another return.</p>
    <p>Here’s another return.</p>
    <div></div>
    ---------------- end of source --------------
     
    4. I save this source code in notepad.exe as a test.html.
     
    5. Open the test.html in Internet Explorer. The one space now becomes three spaces.
  •  09-06-2006, 2:26 PM 22438 in reply to 22437

    Re: Extra blank lines making our customers very mad - Cute Editor community please help!!!

    Can someone show me a code example of catching the Paste as Word event, so that I can fix the bug?
     
    I want to change the <P>&nbsp;</P> from adding three blank lines. I just need one blank line. Or something like a <BR/><BR/>
     
    Please help, big angry customers here!
  •  09-06-2006, 2:35 PM 22443 in reply to 22438

    Re: Extra blank lines making our customers very mad - Cute Editor community please help!!!

    Using Cute Editor forum's search, I am able to find the following ticket similar to my problem.
     
    Roland had the same problem in January and February: http://cutesoft.net/forums/thread/16005.aspx
     
     
    It still does not solve the problem, because Roland asked the question and did not get an solution to his problem even after he check back in 24 business days. Who can solve this extra blank space problem? Please help!!
     
    We are paying customers of Cute Editor, could someone please help? Our customers are burning down our company over this bug!
  •  09-06-2006, 3:12 PM 22451 in reply to 22437

    Re: Extra blank lines making our customers very mad - Cute Editor community please help!!!

    obiwantcp,
     
    It's a HTML issue.
     
    When you paste from MS word, if you don't choose the clean option, you will find out the original code from word is:
     
    <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size=3>Hello world</font></p>
    <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><font face="Times New Roman" size=3>&nbsp;</font></o:p></p>
    <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size=3>Hello world</font></p>
    <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size=3>Hello world</font></p>

    If you choose the clean option, the code will become the following format:
     
    <p>Hello world</p>
    <p>&nbsp;</p>
    <p>Hello world</p>
    <p>Hello world</p>


    In HTML, by default, the <P> tag automatically creates a space between paragraphs (double spacing).  Many developers use this method: add p{margin:0px} into the style sheet. By this way, <P> tag will render as single spacing.
     
     
     

    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-06-2006, 7:33 PM 22468 in reply to 22451

    Re: Extra blank lines making our customers very mad - Cute Editor community please help!!!

    Initial testing shows your suggestion works as advertised. Thank you Adam! *big hug*
View as RSS news feed in XML