Opened 17 years ago

Closed 17 years ago

#1054 closed Bug (fixed)

Incorrect line spacing after deleting everything in document in Firefox

Reported by: Martin Kou Owned by: Martin Kou
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: General Version: SVN (FCKeditor) - Retired
Keywords: Confirmed Firefox Cc:


Reproduction procedure:

  1. Go to sample01.html.
  2. Press Ctrl-A to select all.
  3. Press Del to delete everything.
  4. Type "First line", press Enter.
  5. Type "Second line", press Enter.
  6. Type "Third line", press Enter.
  7. Notice the line spacing between "First line" and "Second line" is much larger than expected.

This bug does not occur in 2.4.3.

Change History (3)

comment:1 Changed 17 years ago by Martin Kou

I've traced the error to @308. Before @308 (say, @307), the error does not occur.

[308] is quite a large change however. So I'll need some time to investigate what went wrong with it.

comment:2 Changed 17 years ago by Frederico Caldeira Knabben

Actually it is not really space there. We have two "bogus BR" inside the first paragraph:

    First line<br _moz_dirty=""/><br type="_moz"/>

Probably Firefox added the first <br> when deleting, and we are adding the second one when hitting enter. Maybe something need to be changed at FCKTools.AppendBogusBr.

comment:3 Changed 17 years ago by Martin Kou

Resolution: fixed
Status: newclosed

Fixed with [650].

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