Opened 8 years ago
Closed 8 years ago
#16698 closed Bug (wontfix)
undo still working after resetUndo() in source mode
Reported by: | Gregor Müller | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Undo & Redo | Version: | 4.5.11 |
Keywords: | Cc: |
Description
Steps to reproduce
- go to http://ckeditor.com/demo
- switch to source mode
- make some changes
- open console and call function resetUndo()
- press ctrl-z
Expected result
no undo step is being made
Actual result
editor goes back 1 step in undo history
Other details (browser, OS, CKEditor version, installed plugins)
any browser CKEditor version 4.5.11 (local version) and 4.6.0 revision 68643fd (demo site)
note: undoManager.hasUndo will be false (which is correct) after calling resetUndo() but undo will still be possible
I see this is browser behavior, since the editor is using a simple textarea, when swapping to source mode...
Too bad.