using <br> for breakElement combined with lists not working well

Last post 02-28-2006, 11:53 PM by Adam. 2 replies.
Sort Posts: Previous Next
  •  02-25-2006, 1:13 PM 16430

    using <br> for breakElement combined with lists not working well

    Background:  if I have text typed in multiple lines like this:

    blah
    blah
    blah

    and then I highlight all three rows and press the bullet list button, I expect to get this:

    • blah
    • blah
    • blah
    And this works correctly if using <div> as the break element - i.e. my html to start looks like:
    <div>blah</div>
    <div>blah</div>
    <div>blah</div>


    HOWEVER, if I use the <br> as a break element, and the resulting html is:
    blah<br>blah<br>blah

    then when Highlighting those three lines of  text and pressing the bullet list button, I get:

    <ul>
        <li>blah<br>blah<br>blah </li>
    </ul>

    which of course looks like this (NOT CORRECT!):
     
     
    My users are complaining about this, and I do NEED to use <br>  as the break element.
     
    There is also funkiness if I now "undo" the list by again pressing the bullet list button, as you now insert <p> tags around my original html:  <p>blah<br>blah<br>blah </p>
     
    I just downloaded the package dated 2-24-06, so I am using the most current code, and getting this behavior.  This is in IE 6.
     
    Please help.
    Sheryl
     
     PS the image that appears when I edit this post isn't appearing when the post is published... another problem?  I uploaded to your forums before inserting it, so???
  •  02-28-2006, 7:43 PM 16527 in reply to 16430

    Re: using <br> for breakElement combined with lists not working well

    waiting...
  •  02-28-2006, 11:53 PM 16539 in reply to 16527

    Re: using BR for breakElement combined with lists not working well

    This is not an online Eidtor issue. It's about HTML List Rules.
     
    First let's make a test.
     
    Type the following HTML code into the FrontPage (if you installed it on your machine):
     
    test<br/>
    test<br/>
    test<br/>
    test<br/>
    test<br/>
    test<br/>
    test<br/>
     
    Select the first line and click the order list.
     
    You will find out FrontPage has the same behavior as Cute Editor.
     
    The <br> tag is a special HTML element, not a Block-level element like <div>, <p>
     
    Like other editors, Cute Editor implements the IE MSHTML Editing Platform.
     
    One of the general rules for what happens when you click on a list toolbar button:
    For selected paragraphs that are not list items, make each paragraph a list item.
     
    I know it's a bit tricky when intervening <br> element. The users may want the editor automatically remove <br> elements; And also want the editor add a list item between each <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

View as RSS news feed in XML