Opened 10 years ago

Closed 10 years ago

#534 closed Bug (fixed)

Wrong cursor positioning with lists

Reported by: dustball Owned by:
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: General Version: FCKeditor 2.4.2
Keywords: Firefox Confirmed Cc:


  1. Load 2.4.3 Beta with Firefox at
  1. Delete all the text, and type three lines of text
  1. Select the three lines, and click the 'bulleted list' icon
  1. Switch to source mode and switch back
  1. Focus in the editor and hit <Control-End> on the keyboard to jump to the end of the document.

BUG 1: First, you will notice the cursor is askew, down a few pixels.

BUG 2: If you type "Hello<enter>" you will see the cursor jump down to the next line

BUG 3: If you type any more, the characters are invisible. There is no record of having typed them if you switch back to source.

Change History (2)

comment:1 Changed 10 years ago by fredck

  • Component changed from Core : Styles to General
  • Keywords Firefox Confirmed added; firefox lists removed
  • Milestone changed from FCKeditor 2.4.3 to FCKeditor 2.5
  • Summary changed from Can focus in an OL element, then type invisible characters to Wrong cursor positioning with lists
  • Version set to FCKeditor 2.4.2

I could reproduce this one with FF2. Ok with IE6.

This is certainly a FF bug. The cursor is placed right after the last <li> element, but before the <ul> closing. Something like this:

    <li>Line 1</li>
    <li>Line 1</li>
    <li>Line 1</li>
    [Cursor is here]

Fortunately it happens only in the unfortunate case described by dustball. A possible solution would be ensuring that we have a bogus <br> at the end of the document when loading HTML in the editor.

comment:2 Changed 10 years ago by martinkou

  • Resolution set to fixed
  • Status changed from new to closed

This bug has been fixed with [637].

Now the given test case would move the mouse cursor to a new line appended at the end of the document (outside of the lists), instead of inside of the <ul> tag.

Note: See TracTickets for help on using tickets.
© 2003 – 2016 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy