Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.7
-
None
-
IE
-
Unit
-
Description
If the selection contents are completely deleted after a SelectionPreserver.store(), then, in certain situations, the actual selection (caret) can slide in one of the spans that mark the start and end of the selection preserver. If content is added at this point, it is added in these elements and, upon, SelectionPreserver.restore() will be deleted with the markers.
One example is the replacement of an image with the InsertHTML command with selection preserving: when the selection is on the image and the image element is deleted, the caret slides in the preserver's marker spans, causing the new html (the one to be inserted) to be added in the span and deleted upon selection restore.
This behaviour was noticed on IE7, and it does not reproduce on FF.
Attachments
Issue Links
- blocks
-
XWIKI-2929 Allow editing inserted images
- Closed