Removing blank line causing html syntex error

Last post 11-30-2011, 11:19 AM by qsun. 2 replies.
Sort Posts: Previous Next
  •  11-29-2011, 6:02 PM 71713

    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
     
  •  11-30-2011, 6:54 AM 71722 in reply to 71713

    Re: Removing blank line causing html syntex error

    Hi qsun,
     
    1. I can reproduce this problem.
     
    2. Editor remove the <br/> before the first <br/> did not generate any format for the content.
     
    For example the text below, the first <br/> did not generate any format because it at the end of the <div> target, so when you try to remove the empty line, the <br/> be removed too.
     
    <div>this is a test<br/>
    </div>
    <br />
    test
     
    I will report it to the development team, once issue is fixed, I will keep you posted. Sorry for your inconvenience.
     
    Regards,
     
    Ken 
  •  11-30-2011, 11:19 AM 71737 in reply to 71722

    Re: Removing blank line causing html syntex error

    Hi Ken,
     
    Thanks for your quick response and working on the fix. Please let me know once it is fixed.
     
    Regards, Qian 
View as RSS news feed in XML