Opened 9 years ago

Last modified 9 years ago

#12986 confirmed Bug

Undo doesn't work when editor starts empty in source mode

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: General Version: 4.4.0
Keywords: Cc:


  1. Put attached file into editor samples folder.
  2. Editor is empty and starts in source mode.
  3. Switch to wysiwyg by clicking Source button.
  4. Type e.g. ABCDE
  5. Press UNDO button

Result: Text is not removed.

Attachments (1)

replacebycodeX.html (1.4 KB) - added by Jakub Ś 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by Jakub Ś

Attachment: replacebycodeX.html added

comment:1 Changed 9 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 9 years ago by Piotrek Koszuliński

I've noticed that when undo is pressed the uM.index is -1 even though the initial snapshot (of empty contents) is taken. When I forced the index to be 0, undo worked. So it seems that the moment when initial snapshot is taken must be fixed. Since it happens on instanceReady it looks very related to the startup mode.

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