Opened 17 years ago

Closed 17 years ago

#534 closed Bug (fixed)

Wrong cursor positioning with lists

Reported by: Brian Klug 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 17 years ago by Frederico Caldeira Knabben

Component: Core : StylesGeneral
Keywords: Firefox Confirmed added; firefox lists removed
Milestone: FCKeditor 2.4.3FCKeditor 2.5
Summary: Can focus in an OL element, then type invisible charactersWrong cursor positioning with lists
Version: 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 17 years ago by Martin Kou

Resolution: fixed
Status: newclosed

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 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy