Opened 16 years ago

Closed 16 years ago

#3871 closed Bug (fixed)

Undo resets Redo buffer when undoing to beginning

Reported by: Damian Owned by: Garry Yao
Priority: Must have (possibly next milestone) Milestone: CKEditor 3.0
Component: Core : Undo & Redo Version:
Keywords: IBM Confirmed Review+ Cc:

Description

The redo buffer is reset when using the undo feature all the way to the beginning.

To reproduce:

  1. Open nightly Ajax sample
  2. Add some text on a few lines
  3. Use undo until reaching the initial state
  4. Attempt to redo last undo

Result: Redo is enabled but does not have any more state

Expected: Redo should maintain state and allow redoing even after reaching the end of the undo stack

Attachments (3)

3871.patch (2.1 KB) - added by Garry Yao 16 years ago.
3871_2.patch (2.1 KB) - added by Garry Yao 16 years ago.
3871_3.patch (2.6 KB) - added by Frederico Caldeira Knabben 16 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 16 years ago by Garry Yao

Keywords: Confirmed added
Owner: set to Garry Yao
Status: newassigned

comment:2 Changed 16 years ago by Garry Yao

Keywords: Review? added

The problem was due to incorrect snapshot saving logic which create one unreachable snapshot at the beginning of stack.

comment:3 Changed 16 years ago by Garry Yao

Component: GeneralCore : Undo/Redo
Priority: NormalHigh

Changed 16 years ago by Garry Yao

Attachment: 3871.patch added

comment:4 Changed 16 years ago by Artur Formella

Keywords: Review+ added; Review? removed
Summary: [IE7] Undo resets Redo buffer when undoing to beginningUndo resets Redo buffer when undoing to beginning

comment:5 Changed 16 years ago by Frederico Caldeira Knabben

Keywords: Review- added; Review+ removed
  • In the editingblock plugin, please fire the beforeModeUnload event at line 171. It may happen that the event is used to manipulate the data right before unloading it.
  • Coding style: please make it correct and consistent with the rest of the code. Also, the change at line 95 is not needed.

Changed 16 years ago by Garry Yao

Attachment: 3871_2.patch added

comment:6 Changed 16 years ago by Garry Yao

Keywords: Review? added; Review- removed

Changed 16 years ago by Frederico Caldeira Knabben

Attachment: 3871_3.patch added

comment:7 Changed 16 years ago by Frederico Caldeira Knabben

Keywords: Review+ added; Review? removed

Sometimes words are not enough to properly express your intentions. I've attached a new patch for it. Please go ahead committing it if it satisfy the ticket needs.

comment:8 Changed 16 years ago by Garry Yao

Resolution: fixed
Status: assignedclosed

Fixed with [3846] and [3847].

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