Opened 17 years ago

Last modified 17 years ago

#1281 closed Bug

Undo move cursor to the end of the document in IE — at Version 1

Reported by: tba21cn Owned by:
Priority: Normal Milestone:
Component: Core : Undo & Redo Version: SVN (FCKeditor) - Retired
Keywords: Pending Cc:

Description (last modified by Martin Kou)

Test step:

  1. type some content in FCKeditor (multiple paragraphs)
  2. at the end of 1st paragraph, type text, like "abc"
  3. press undo
  4. type "def"

You can find the the "def" appear at the end of the document. IE7 has this issue, FF 2 do not, I am not sure about IE6.

Change History (1)

comment:1 Changed 17 years ago by Martin Kou

Description: modified (diff)
Keywords: Pending added; undo removed

The undo logic of FCKeditor does not save an undo snapshot for every character you typed, because that does not make sense. In fact, for typing actions, it saves an undo step for every 25th character you typed.

While I could easily reproduce the caret jumping phenomenon by repeating your steps. I noticed that the caret jumped to the end because previously I had been typing at final paragraph, and so the caret jumped to where I was typing when it saved an undo snapshot, which is correct. If you have typed, say, 40 random characters to the end of paragraph 1 at step 4, then the caret shouldn't jump to the end. If it does, then it is a bug.

I'm not sure if you're meeting something very different from me (I'm using both IE7 and 6 on the nightly test page). But to me, it seems to be working correctly.

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