You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following deltas will be generated: remove old p, insert new p 1, insert new p 2. The remove will be the first one. After it is applied, undo will try to save the batch. Since there is nothing in editor at this point, the selection will be placed at [ 0 ] and it will be saved this way.
Then undo.
New paragraphs will be removed.
Old paragraph will be recovered.
Selection will be restored. It will start from [ 0 ]. After it will be transformed by all deltas, it ends up at [ 1 ]. Which is incorrect selection position: <p></p>[].
<p>[]</p>
.remove old p
,insert new p 1
,insert new p 2
. The remove will be the first one. After it is applied, undo will try to save the batch. Since there is nothing in editor at this point, the selection will be placed at[ 0 ]
and it will be saved this way.Then undo.
[ 0 ]
. After it will be transformed by all deltas, it ends up at[ 1 ]
. Which is incorrect selection position:<p></p>[]
.In ckeditor/ckeditor5-engine#1138 I introduce
DocumentSelection#hasOwnRange
to overcome this issue.The text was updated successfully, but these errors were encountered: