Linebreak Not working.

  •  09-02-2008, 4:09 PM

    Linebreak Not working.

    The linebreaks are not working as intended. This was the bug in 5.3 and is still occuring at 6.1.2
     
    if a table is surrounded by a custom div, then if you press enter and type something in, the new text does not wrap in requested linebreak. instead it creates a custom div tag as a containing tag.
     
    Steps to reproduce
    1. use url http://cutesoft.net/example/oncarriagereturn.aspx
    2. select "P" as line break
    3. select HTML tab.
    4. Type <div customTag='x'></div>
    5. place the cursor inside div
    6. switch to Normal mode
    7. Drop a 2x2 table. (The cursor is pointing right after the bottom right cell now)
    8. Press "Enter" key, then type test
    9. Switch to HTML mode
    Actual
     
    <div customtag="x">
    <table cellspacing="2" cellpadding="2" width="500" border="0">
        <tbody>
            <tr>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td></td>
                <td></td>
            </tr>
        </tbody>
    </table>
    </div>
    <div customtag="x">test</div>
     
     
    Expecting
     
    <div customtag="x">
    <table cellspacing="2" cellpadding="2" width="500" border="0">
        <tbody>
            <tr>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td></td>
                <td></td>
            </tr>
        </tbody>
    </table>
    </div>
    <p>test</p>
     
     
    Please let us know what can be done to fix this?
    Filed under:
View Complete Thread