Opened 11 years ago
Last modified 11 years ago
#12658 confirmed Bug
Wrong caret position on undo. — at Version 1
| Reported by: | Artur Delura | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | |
| Keywords: | Cc: | jonasw@…, andersjo@… |
Description (last modified by )
Tested with http://ckeditor.com/demo (which reports v4.4.5) using latest Chrome.
- Clear editor contents.
- Add some online image using dialog (Be sure to preload image in dialog).
- Type some text - I typed
foo. - Execute
undocommand. - Execute
redocommand.
Actual result: Caret position is right after image but should be where it was before executing undo command.
Problem: Native getSelection().getRanges()[0] returns wrong offset which is 0 but should be 3. And this wrong range is saved in snapshot before executing undo command.
I checked already whether selection is changed somehow by CKEditor code by simply adding onselectionchange listener. But it's not.
