Ticket #1054 (closed Bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Incorrect line spacing after deleting everything in document in Firefox

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

Description

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

Changed 3 years ago by martinkou

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.

Changed 3 years ago by fredck

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

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

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.

Changed 3 years ago by martinkou

  • status changed from new to closed
  • resolution set to fixed

Fixed with [650].

Click here for more info about our SVN system.

Note: See TracTickets for help on using tickets.