Ticket #534 (closed Bug: fixed)

Opened 7 years ago

Last modified 7 years ago

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:

Description

  1. Load 2.4.3 Beta with Firefox at http://www.fckeditor.net/_temp/2.4.3/_samples/
  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

comment:1 Changed 7 years ago by fredck

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

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:

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

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 7 years ago by martinkou

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

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 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy