Opened 16 years ago

Closed 16 years ago

#1350 closed Bug (fixed)

Firefox Delete bug with <p> and <br type="_moz" />

Reported by: Scott McNaught Owned by: Martin Kou
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: UI : Enter Key Version: SVN (FCKeditor) - Retired
Keywords: Confirmed Firefox Cc:

Description

This bug occurs in gecko based browsers only.

This bug is a bit hard to explain. But put the following source code in. Then at the end of the first line, press enter, then shift enter, then enter, then shift enter (continue alternating between br and p modes respectively for a few lines). After doing this a few times, press backspace until you get the cursor back to the first line. Some of the <br type="_moz" /> tags are not cleaned up and are left hanging around *after* the cursor.

I have set the background color so that you can clearly see the excess <br type="_moz" />s at the end.

<p style="background: rgb(255, 255, 204) none repeat scroll 0% 50%;">Alternate pressing enter and shift enter, then backspace</p>

Change History (3)

comment:1 Changed 16 years ago by Martin Kou

Keywords: Confirmed added; enter <br type="_moz"> p removed
Owner: set to Martin Kou
Status: newassigned

comment:2 Changed 16 years ago by Martin Kou

There's definitely a bug here, but I think I have a different interpretation of what's happening here.

Let's say I have created two paragraphs, each of them with two empty lines (i.e. I've pressed Ctrl-Enter once in each of them).

If my caret is at the top of the second paragraph, and I press backspace; then, the two empty lines in the second paragraph should be merged to the bottom of first paragraph, and I'll get a single paragraph with three empty lines. This is also what Word does, and FCKeditor does that too. So for this specific case FCKeditor's behavior is correct.

What is not correct, is when the caret is at second line of the second paragraph, and I press backspace. In this case, FCKeditor also merges the second paragraph with the first paragraph. But the correct behavior should be that the second line of the second paragraph be deleted, and the second paragraph remains as a separate paragraph with one empty line.

comment:3 Changed 16 years ago by Martin Kou

Resolution: fixed
Status: assignedclosed

Fixed with [985].

Click here for more info about our SVN system.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy