Double line feeds when submitting.

Last post 05-02-2005, 11:50 AM by alwilkinson. 2 replies.
Sort Posts: Previous Next
  •  04-28-2005, 3:47 AM 6212

    Double line feeds when submitting.

    Hello.
     
    I have a site with two CuteEditors on the same page.
    Everything works fine, but when I submit the form I get double line feeds after the first row..
    And when I save it in a database and read it again I get double line feeds between all lines..
    Anyone with the same issue?
     
    Please help.
     
    Kind regards
  •  04-28-2005, 8:45 PM 6272 in reply to 6212

    Re: Double line feeds when submitting.

    In your editor setting, you may choose Enter key inserts new paragraph.

    You can defines what happens when the "enter" key is pressed in the editor in the BreakMode enumeration.This enumeration has three values.

    Member Name
    Description
    UseDivOnCarriageReturn
    use <div > tags on enter keypress instead of <p></p>tags
    UseBROnCarriageReturn
    use <br> tags on enter keypress instead of <p></p>tags
    UseParagrapOnCarriage
    Enter key inserts new paragraph

     Hope it helps.
     
     

    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

  •  05-02-2005, 11:50 AM 6352 in reply to 6272

    Re: Double line feeds when submitting.

    What does the demo use?  If I press return on the demo once, I get:
     
    <P>&nbsp;</P>
    <P>&nbsp;</P>
     
    If I press return multiple (10) times, I get:
    <P>&nbsp;</P>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
     
    Anyone?

    Do all three of these options (UseDivOnCarriageReturn, UseBROnCarriageReturn, UseParagrapOnCarriage) have to be set to get specifically have only one of these to work?
     
    Thanks!
View as RSS news feed in XML