|Reported by:||martinkou||Owned by:||martinkou|
|Priority:||Normal||Milestone:||FCKeditor 2.5 Beta|
|Component:||Core : Undo & Redo||Version:||SVN (FCKeditor) - Retired|
- Pressing Ctrl-Z breaks the undo/redo system
1. Open the current release version of FCKeditor in http://www.fckeditor.net/demo in Internet Explorer 6 or 7. 2. Typing some random characters into the editor instance. 3. Press Ctrl-Z to undo, it works. 4. Press Ctrl-Y to redo, it doesn't work.
1. Open the current release version of FCKeditor in http://www.fckeditor.net/demo in Internet Explorer 6 or 7. 2. Select the editor instance. Don't type anything yet. 3. Press Ctrl-Z a few times. 4. Type some random characters into the editor instance. 5. Perform undo by either Ctrl-Z or by the toolbar button above, it doesn't work.
- Selection is not restored for the first change
1. Open the current release version of FCKeditor in http://www.fckeditor.net/demo in Internet Explorer 6 or 7. 2. Select some text. 3. Change the font size. 4. Press the undo button in toolbar. 5. The font size is restored, but the text selection is not.
This bug occurs because the current undo/redo logic thinks the snapshot just before the font size change was the same as the initial snapshot taken at editor initialization, so it ignored the newer snapshot. The current logic neglected to check for differences in selection.
- No stepwise undo for Cut and Delete operations
1. Open the current release version of FCKeditor in http://www.fckeditor.net/demo in Internet Explorer 6 or 7. 2. Select some text. 3. Press Ctrl-X or Del. 4. Select some more text. 5. Press Ctrl-X or Del. 6. Select even more text. 7. Press Ctrl-X or Del. 8. Press the undo toolbar button. 9. Your three delete/cut operations were restored in one step. Compare this behavior to MS Word 2003, MS Word restored the 3 operations in a stepwise manner. Also compare the how the stepwise undo you got if you did the cut operation by the toolbar button instead.
This bug occurs because there are currently no registered commands for Ctrl-X or Del keystrokes in FCKeditor. They are treated as simple keyboard input in front of the undo/redo system.
Change History (6)
comment:3 Changed 10 years ago by martinkou
- Resolution set to fixed
- Status changed from new to closed