Opened 10 years ago
Last modified 10 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: |
Description
- Put attached file into editor samples folder.
- Editor is empty and starts in source mode.
- Switch to wysiwyg by clicking Source button.
- Type e.g. ABCDE
- Press UNDO button
Result: Text is not removed.
Attachments (1)
Change History (3)
Changed 10 years ago by
Attachment: | replacebycodeX.html added |
---|
comment:1 Changed 10 years ago by
Status: | new → confirmed |
---|
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 oninstanceReady
it looks very related to the startup mode.