Removing blank line causing html syntex error

  •  11-29-2011, 6:02 PM

    Removing blank line causing html syntex error

    Hi, We have the following issue when using CuteEditor.net 6.6. I am able to reproduce it on CuteEditor demo site.
     
    Here is the description: When delete an blank line in "normal", CuteEditor removes the <br /> and </div> the line above <br /> causing html syntex error.
     
    Reproduce step:
     
    1) Copy the following in the "HTML" tab in editor
     
    <html>
        <head>
        </head>
        <body>
            <div id="9" contenteditable="false" unselectable="ON" isrequired="0"><strong>Tab1Title</strong></div>
            <div>this is a test<br />
            </div>
            <br />
            <div id="10" contenteditable="false" unselectable="ON" isrequired="0"><strong>Tab2Title</strong></div>
            <div>Test in tab2<br />
            </div>
            <br />
            <div id="11" contenteditable="false" unselectable="ON" isrequired="0"><strong>Tab3Title</strong></div>
            <div><br />
            </div>
            <br />
            <div id="12" contenteditable="false" unselectable="ON" isrequired="0"><strong>Tab4Title</strong></div>
            <div><br />
            </div>
            <br />
            <div id="13" contenteditable="false" unselectable="ON" isrequired="0"><strong>Tab5Title</strong></div>
            <div><br />
            </div>
            <br />
            <div id="14" contenteditable="false" unselectable="ON" isrequired="0"><strong>InsertBanner</strong></div>
            <div><br />
            </div>
            <br />
            <div id="15" contenteditable="false" unselectable="ON" isrequired="0"><strong>Tab1Content</strong></div>
            <div><br />
            </div>
            <br />
            <div id="16" contenteditable="false" unselectable="ON" isrequired="0"><strong>Tab2Content</strong></div>
            <div><br />
            </div>
            <br />
            <div id="17" contenteditable="false" unselectable="ON" isrequired="0"><strong>Tab3Content</strong></div>
            <div><br />
            </div>
            <br />
            <div id="18" contenteditable="false" unselectable="ON" isrequired="0"><strong>Tab4Content</strong></div>
            <div><br />
            </div>
            <br />
            <div id="19" contenteditable="false" unselectable="ON" isrequired="0"><strong>Tab5Content</strong></div>
            <div><br />
            </div>
            <br />
            <div id="20" contenteditable="false" unselectable="ON" isrequired="0"><strong>Title</strong></div>
            <div><br />
            </div>
            <br />
            <div id="21" contenteditable="false" unselectable="ON" isrequired="0"><strong>OldArticleID</strong></div>
            <div><br />
            </div>
            <br />
        </body>
    </html>
     
    2) Switch to "Normal", using back key to remove a blank line under "this is a test"
    3) Switch to "HTML", notice the  the <br /> and </div> are removed. In above example, the first section looks like the following. Notice the corresponding </div> is removed along with <br />
     
            <div id="9" contenteditable="false" unselectable="ON" isrequired="0"><strong>Tab1Title</strong></div>
            <div>this is a test<br />
     
    Please fix this bug.
     
    Regards, Qian
     
View Complete Thread